Class BaseJsonWriter
public abstract class BaseJsonWriter : BaseWriter
- Inheritance
-
BaseJsonWriter
- Derived
- Inherited Members
Properties
IndentationStep
Gets or sets the number of spaces to add for each level of indentation. The default value is 2.
public int IndentationStep { get; set; }
Property Value
Methods
WriteConfiguration(TranslationManager, Stream)
public override void WriteConfiguration(TranslationManager translationManager, Stream stream)
Parameters
translationManagerTranslationManagerstreamStream
WriteJsonProperty(string, string, bool, StringBuilder)
public virtual void WriteJsonProperty(string name, string value, bool isFirst, StringBuilder sb)
Parameters
namestringvaluestringisFirstboolsbStringBuilder
WriteTranslation(TranslationManager, CultureInfo, Stream)
Writes translations in the format that supports one language in one file.
public override void WriteTranslation(TranslationManager translationManager, CultureInfo culture, Stream stream)
Parameters
translationManagerTranslationManagerThe translation translationManager from which the translations should be picked.
cultureCultureInfoThe culture to write.
Set this parameter to InvariantCulture to signal that the default translation should be written.
streamStreamThe stream to write the resulting file to.
WriteTranslations(TranslationManager, IReadOnlyCollection<CultureInfo>, Stream)
Writes translations in the format that supports multiple languages in one file.
public override void WriteTranslations(TranslationManager translationManager, IReadOnlyCollection<CultureInfo> cultures, Stream stream)
Parameters
translationManagerTranslationManagerThe translation translationManager from which the translations should be picked.
culturesIReadOnlyCollection<CultureInfo>The list of cultures to write.
streamStreamThe stream to write the resulting file to.