Get translations for the provided category and language.
You have two ways to get the translations: either pass the category + the corresponding keys,
or only pass the keys, but prefix each one with the category and a dot. Eg: \{category}.\{key}
Channel tags
Translations
GetTranslationsRequest
Payload
Name
Type
Description
Accepted values
key
string
Any
category
string
Optional when using the dot notation in the translations keys.
Any
language
string
ISO 639-1 language code, Eg: 'en' or 'en-US'
Any
translation_keys
array(string)
Optional if the category is set. In that case it will return all translations for that category.
Request all translation providers to register their translations using the topics below.
Channel tags
Translations
EmptyMessage
Empty message
zbos/translations/add
PUBAdd translations
Add translations with their default values.
These default values will be used as long as they are not updated via zbos/translations/update
Channel tags
Translations
AddTranslationsRequest
Payload
Name
Type
Description
Accepted values
key
string
Any
category
string
Any
language
string
ISO 639-1 language code, Eg: 'en' or 'en-US'
Any
file
string
Optional. Use either translations or file.
The file location should be a path accessible for the RAIL.
The content should be a json object with key-value pairs.
Dots (.) are not allowed in the keys and will be replaced with underscores (_)"
Any
translations
object
Optional. Use either translations or file
Dots (.) are not allowed in the keys and will be replaced with underscores (_)
Update translations overriding the default values.
Channel tags
Translations
UpdateTranslationsRequest
Payload
Name
Type
Description
Accepted values
key
string
Any
category
string
Any
language
string
ISO 639-1 language code, Eg: 'en' or 'en-US'
Any
file
string
Optional. Use either translations or file.
The file location should be a path accessible for the RAIL.
The content should be a json object with key-value pairs.