Tlumach
  • Articles
  • API Reference
Search Results for

    Show / Hide Table of Contents
    • Tlumach
      • Base
        • ArbParser
        • ArbPlaceholder
        • BaseGenerator
        • BaseJsonParser
        • BaseKeyValueParser
        • BaseParser
        • BaseTableParser
        • BaseXMLParser
        • CsvParser
        • CultureNameMatchEventArgs
        • FileFormats
        • GenericParserException
        • IniParser
        • JsonParser
        • ParserConfigException
        • ParserFileException
        • ParserLoadException
        • Placeholder
        • ResxParser
        • TemplateParserException
        • TemplateProcessingException
        • TextFileParseException
        • TextFormat
        • TextParseException
        • TlumachException
        • TomlParser
        • Translation
        • TranslationConfiguration
        • TranslationEntry
        • TranslationTree
        • TranslationTreeLeaf
        • TranslationTreeNode
        • TsvParser
        • Utils
      • BaseTranslationUnit
      • CultureChangedEventArgs
      • FileContentNeededEventArgs
      • TemplatedTranslationUnit
      • TranslationManager
      • TranslationUnit
      • TranslationValueEventArgs

    Class JsonParser

    The parser for simpler JSON translation files.

    Inheritance
    object
    BaseParser
    BaseJsonParser
    JsonParser
    Inherited Members
    BaseJsonParser.LocaleSeparatorChar
    BaseJsonParser.GetLocaleSeparatorChar()
    BaseJsonParser.ParseConfiguration(string, Assembly)
    BaseJsonParser.LoadTranslation(string, CultureInfo)
    BaseJsonParser.InternalLoadTranslationStructure(string)
    BaseJsonParser.ShouldSkipStringProperty(string)
    BaseJsonParser.ShouldSkipObjectProperty(string)
    BaseParser.RecognizeFileRefs
    BaseParser.UseDefaultFileForTranslations
    BaseParser.StringHasParameters(string, TextFormat)
    BaseParser.LoadTranslationStructure(string, string, out TranslationConfiguration)
    BaseParser.ParseConfigurationFile(string)
    BaseParser.ParseConfigurationFile(Assembly, string)
    BaseParser.ValidateConfiguration(TranslationConfiguration)
    BaseParser.GetAbsolutePosition(string, int, int)
    BaseParser.DecodeTextProcessingMode(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tlumach.Base
    Assembly: Tlumach.Base.dll
    Syntax
    public class JsonParser : BaseJsonParser

    Properties

    TextProcessingMode

    Gets or sets the text processing mode to use when decoding potentially escaped strings and when recognizing template strings in translation entries.

    Declaration
    public static TextFormat TextProcessingMode { get; set; }
    Property Value
    Type Description
    TextFormat

    Methods

    CanHandleExtension(string)

    Checks whether this parser can handle a translation file with the given extension.

    This method is not used for configuration files.

    Declaration
    public override bool CanHandleExtension(string fileExtension)
    Parameters
    Type Name Description
    string fileExtension

    The extension to check.

    Returns
    Type Description
    bool

    true if the extension is supported and false otherwise.

    Overrides
    BaseParser.CanHandleExtension(string)

    GetTextProcessingMode()

    Declaration
    protected override TextFormat GetTextProcessingMode()
    Returns
    Type Description
    TextFormat
    Overrides
    BaseParser.GetTextProcessingMode()

    InternalLoadTranslationEntriesFromJSON(JsonElement, Translation?, string)

    Declaration
    protected override Translation InternalLoadTranslationEntriesFromJSON(JsonElement jsonObj, Translation? translation, string groupName)
    Parameters
    Type Name Description
    JsonElement jsonObj
    Translation translation
    string groupName
    Returns
    Type Description
    Translation
    Overrides
    BaseJsonParser.InternalLoadTranslationEntriesFromJSON(JsonElement, Translation?, string)

    Use()

    Initializes the parser class, making it available for use.

    Declaration
    public static void Use()
    In this article
    Back to top Generated by DocFX