Enum TextFormat
Specifies how the library should deal with translation entries which may support placeholders or reserved characters.
Namespace: Tlumach.Base
Assembly: Tlumach.Base.dll
Syntax
public enum TextFormat
Fields
| Name | Description |
|---|---|
| Arb | Curly braces are used to denote placeholders according to the rules defined for Arb files (those used in Dart language and Flutter framework) including the "use-escaping: true" setting. |
| ArbNoEscaping | Curly braces are used to denote placeholders according to the rules defined for Arb files (those used in Dart language and Flutter framework). Unlike Arb mode, quote characters (') are not considered as escape symbols. |
| BackslashEscaping | Strings may contain any characters, but "unsafe" characters should be prepended with a backslash (""), and encoded characters are supported. This is the format used in C++, JSON strings, and TOML basic strings. Placeholders are not supported in this format. |
| DotNet | Curly braces are used to denote placeholders according to the .NET rules used by String.Format(). Text is considered to be optionally escaped, and an attempt is made to un-escape it according to BackslashEscaping rules. |
| None | No decoding of characters takes place, and placeholders are not detected. |