Translations
This section deals with language translations of categories, indicators and units, i.e. making your taxonomy and frameworks multilingual. Translations are removed when taxonomy items are removed.
Returns all registered Languages
POST
https://api.bws.ninja/v1/call
Use this operation to list available languages for when you are to register translations for categories, sub-categories, super-indicators, indicators, and units, when building up your taxonomy.
Request Body
solution*
string
BWS.ESG.Credits
operation*
string
getLanguages
Example code
Adds a language translation to a category
POST
https://api.bws.ninja/v1/call
Use this operation to add or change a language translation to a category for your taxonomy for a particular year.
Request Body
solution*
string
BWS.ESG.Credits
operation*
string
addCategoryTranslation
parameters*
JSON
check Operation parameters
Adds a language translation to a sub category
POST
https://api.bws.ninja/v1/call
Use this operation to add or change a language translation to a sub category for your taxonomy for a particular reporting year.
Request Body
solution*
string
BWS.ESG.Credits
operation*
string
addSubCategoryTranslation
parameters*
JSON
check Operation parameters
Operation parameters
sub_category_id
number/integer
yes
Integer identifier of a sub category
reporting_year
number, 4 digits
yes
Year of the taxonomy
language_code
string
yes
Language codes as per getLanguages
translation
string
yes
The translated phrase
Example code
Adds a language translation to a super indicator
POST
https://api.bws.ninja/v1/call
Use this operation to add or change a language translation to a super indicator for your taxonomy for a particular reporting year.
Request Body
solution*
string
BWS.ESG.Credits
operation*
string
addSuperIndicatorTranslation
parameters*
JSON
check Operation parameters
Operation parameters
super_indicator_id
number/integer
yes
Integer identifier of a super indicator
reporting_year
number, 4 digits
yes
Year of the taxonomy
language_code
string
yes
Language codes as per getLanguages
translation
string
yes
The translated phrase
Example code
Adds a language translation to an indicator
POST
https://api.bws.ninja/v1/call
Use this operation to add or change a language translation to a indicator for your taxonomy for a particular reporting year.
Request Body
solution*
string
BWS.ESG.Credits
operation*
string
addIndicatorTranslation
parameters*
JSON
check Operation parameters
Operation parameters
indicator_id
number/integer
yes
Integer identifier of an indicator
reporting_year
number, 4 digits
yes
Year of the taxonomy
language_code
string
yes
Language codes as per getLanguages
translation
string
yes
The translated phrase
Example code
Adds a language translation to a unit
POST
https://api.bws.ninja/v1/call
Use this operation to add or change a language translation to a unit for your taxonomy for a particular reporting year. In many cases units are identical between languages, but this entry is still needed by the model.
Request Body
solution*
string
BWS.ESG.Credits
operation*
string
addUnitTranslation
parameters*
JSON
check Operation parameters
Operation parameters
unit_id
number/integer
yes
Integer identifier of an indicator
reporting_year
number, 4 digits
yes
Year of the taxonomy
language_code
string
yes
Language codes as per getLanguages
translation
string
yes
The translated phrase
Example code
Last updated