LocalizationPreferences
Stay organized with collections
Save and categorize content based on your preferences.
A full, human-readable address for the entity containing this message.
JSON representation |
{
"languageCode": string,
"regionCode": string
} |
Fields |
languageCode |
string
Required. The BCP-47 language tag used for localizing the texts. Examples of language tag include, "en-US", "hi-IN", "fr-CA", etc.
|
regionCode |
string
Required. The Unicode country/region code (CLDR) of the location from which the request is coming from, such as "US" and "419". For more information, see http://www.unicode.org/reports/tr35/#unicode_region_subtag.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-30 UTC."],[[["The JSON representation defines a full, human-readable address."],["It includes `languageCode` for specifying the language and `regionCode` for indicating the region."],["Both `languageCode` and `regionCode` are required fields with specific formats (BCP-47 and CLDR respectively)."]]],["The provided JSON structure defines a method for specifying language and regional information. It requires two string fields: `languageCode` and `regionCode`. `languageCode` uses BCP-47 language tags (e.g., \"en-US\", \"fr-CA\") for text localization. `regionCode` uses Unicode country/region codes (CLDR) like \"US\" or \"419\" to define the request's origin location. Both fields are mandatory.\n"]]