Language Translations
The translations endpoint supplies operations to view the custom string translations for a specified language, and to update localized strings for UI elements in the specified language.
The response for a GET request returns the embedded resources that supply UI strings in English, and the associated localized string content in the specified language. Here’s a sample of a localized string (in French) for the Cancel button in the flow-ui module used in a UI page:
"_embedded": {
"translations": [
{
"id": "3e90224d-9036-4d78-badb-65e98f4fc944",
"key": "flow-ui.button.cancel",
"shortKey": "button.cancel",
"referenceText": "Cancel",
"translatedText": "Annuler"
},
PingOne support UI string translations for the following languages:
| Locale | Language |
|---|---|
|
German |
|
English |
|
Spanish |
|
French |
|
French (Canadian) |
|
Italian |
|
Japanese |
|
Korean |
|
Dutch |
|
Portuguese |
|
Russian |
|
Thai |
|
Turkish |
|
Chinese |
|
Czech |
Languages translation request data model
For PUT requests, the following properties are required in the request body.
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the page and name of the interface element to be localized (for example, |
|
String |
Required |
Mutable |
A string that specifies the translated string text associated with the interface element. |
|
|
Languages translation response data model
For GET requests, the data model returns the following information about the specified language’s localized strings.
| Property | Type | Description |
|---|---|---|
|
String |
The translation ID for a specific string. |
|
String |
The page and name of the interface element to be localized (for example, |
|
String |
The interace element only (for example, |
|
String |
The English string text associated with the interface element. |
|
String |
The translated string text associated with the interface element. |