Account Languages
Returns JSON item array of all languages supported by PSL. The language codes are used in other services in order to provide the proper localized translation provided by the election administrator (account). These translations, when available, are ideal for use in place of other means as they are crafted by the election administrator with election terms as they are commonly expressed to the voting population that they serve.
NOTE: Be sure to include the API Key parameter with your call see api_keys |
Call:
Returns:
Return items array as follows:
accountId is the internal identifier used by ElectionHub that is associated to the subdomain ('nyc' in example above)
accountLanguageId is the internal identifier used to map accounts to languages in ElectionHub
code is the abbreviation of the language used in ElectionHub
languageId is the internal account-independent identifier of the language used by ElectionHub
localName is the name of the language in the language itself
name is the name of the language in English
shortCode is the ISO 639-1 Language Code for the language returned
(English, Spanish and Traditional Chinese shown as example below).
Name | Value |
accountId | 1 |
accountLanguageId | 3 |
code | “eng” |
languageId | 4 |
localName | “English” |
name | “English” |
shortCode | “en” |
accountId | 1 |
accountLanguageId | 1 |
code | “spa” |
languageId | 2 |
localName | “Español” |
name | “Spanish” |
shortCode | “es” |
accountId | 1 |
accountLanguageId | 4 |
code | “zho” |
languageId | 5 |
localName | “中文” |
name | “Chinese” |
shortCode | “zh” |