Class StringCatWriter
A writer for Apple String Catalog files (.xcstrings). A single output file contains translations for all supplied locales.
public class StringCatWriter : BaseJsonWriter
- Inheritance
-
StringCatWriter
- Inherited Members
Properties
ConfigExtension
public override string ConfigExtension { get; }
Property Value
FormatName
public override string FormatName { get; }
Property Value
TranslationExtension
public override string TranslationExtension { get; }
Property Value
Methods
InternalWriteTranslations(TranslationManager, IReadOnlyCollection<CultureInfo>, Stream)
Writes translations.
protected override void InternalWriteTranslations(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.
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.
Remarks
Overrides the base implementation (which throws) to support writing all locales into a single .xcstrings file.