AllLocalizationsToPropertiesConverterConfigStructure
Version #1
Description:
Config of AllLocalizationsToPropertiesConverterProcessor
Fields:
charset
: Enum<iso8859_1 | utf8> [Optional]- Default: iso8859_1Description: Defines the output file encoding charset. ISO 8859-1 is the proper encoding for Java 8 or older. UTF-8 is recommended for Java 9 or newer.
defaultLanguage
: String [Optional]- Description: This will override the category config’s default language configuration when present.
exportDefault
: Boolean [Optional]- Default: trueDescription: Weather to export default language to a default directory
exportDefaultAsIndividualLanguage
: Boolean [Optional]- Default: falseDescription: Weather to export default language like any other language
group
: String [Optional]- Default: javaDescription: Determines the output files group.
key
: KeyTransformationConfigStructure:v1 [Optional]- Default: Transforms: [camelcaseword]Description: Defines how the output keys are transformed. This is applied after splitting the key into property names using
keyDelimiters
. (Only the property names are transformed.)
keyDelimiters
: Array<String> [Optional]- Default: Separates by
.
Description: Defines a list of delimiters to use when splitting keys to property names.
keyPrefix
: String [Optional]- Default: nullDescription: Defines a prefix that will be prepended to the localization keys before splitting it into property names defined by
keyDelimiters
and applying thekey
transformations.
keySuffix
: String [Optional]- Default: nullDescription: Defines a suffix that will be appended to the localization keys before splitting it into property names defined by
keyDelimiters
and applying thekey
transformations.
languageKey
: String [Optional]- Default: nullDescription: Inject an additional key that includes the current language’s code. The
keyDelimiters
will be used to split this if necessary but the key transformations won’t be applied.keyPrefix
andkeySuffix
is ignored for this key.
lineSeparator
: String [Optional]- Default: nDescription: Defines the output file new line character(s).
outputPattern
: String [Optional]- Default: src/main/resources/respresso_messages_{{language}}.propertiesDescription: Defines the output file’s path with a pattern. Use
{{language}}
to define language specific paths.
useDefaultLanguageForMissingTranslations
: Boolean [Optional]- Default: trueDescription: When enabled, missing non-default language translations will be substituted with the default language’s translation
useVariableFormatOverrides
: Array<String> [Optional]- Default: [properties,java,all]Description: Defines which format overrides should be used if they exist for a variable. The first match will be used.