Economy v2 Localization

Important

Economy v2 is now Generally Available. For support and feedback, go to the PlayFab Forum.

Simple localization is supported by using locale keys in your Title, Description, and Keywords fields for Catalog Items. Both Game Manager and all Catalog Item API calls expose these fields.

You can see suggested ISO-639-1 language codes on the Microsoft Support site.

Tip

Setting up player accounts for a third party translation services to use with the API can save time during development. Set the Economy v2 Settings policies to allow item updates for that player ID.

Localization Example

{
    "Title": {
        "NEUTRAL": "My Amazing Fire Weapon",
        "en-US": "My Lit Lit Weapon",
        "en-GB": "My Brilliant Flaming Weapon",
        "fr-FR": "Mon Arme Enflammé Extraordinaire",
        "zh-CHS": "我的神奇火之武器",
        "ja-JP": "私の驚くべき炎の武器",
        "pt-PT": "Minha Arma de Fogo Incrível",
        "ru-RU": "Мое потрясающий огненное оружие",
        "ko-KR": "내 놀라운 화재 무기",
        "de-DE": "Meine Uberfeuerklingenwaffen",
        "it-IT": "Mie Armi di Fuoco Incredibile"
    },
    "Keywords": {
        "NEUTRAL": { "Values": [ "fire","weapon" ] },
        "en-US": { "Values": [ "fire","weapon" ] },
        "fr-FR": { "Values": [ "enflammé", "arme" ] },
        "de-DE": { "Values":[ "feuer","klingenwaffen" ] }
    }
}

Our SearchItems API now accepts a new Language parameter. Setting a language filter changes the language analyzer(s) being used to the languages provided.

An example SearchItems request:

{
  "Search": "Pirates",
  "Filter": "Tags/any(t:t eq 'desert') and ContentType eq 'map'",
  "OrderBy": "lastModifiedDate asc",
  "ContinuationToken": "abc=",
  "Language": "en-GB"
} 

Note

For more information about searching, see Search.

Supported Locale Codes

The following list contains all the locale codes that are supported based on ISO-631-1.

A-I I-P P-Z
am-ET is-IS ps-AF
ar-SA it-IT pt-PT
be-BY ja-JP ro-RO
bg-BG ka-GE ru-RU
bn-BD kk-KZ rw-RW
cs-CZ kl-GL si-LK
da-DK km-KH sk-SK
de-DE ko-KR sl-SI
el-GR ky-KG sq-AL
en-GB lb-LU sv-SE
es-MX lt-LT sw-KE
et-EE lv-LV th-TH
fi-FI mk-MK tk-TM
fo-FO mn-MN tr-TR
fr-FR ms-MY uk-UA
he-IL mt-MT ur-PK
hi-IN nb-NO vi-VN
hr-HR ne-NP wo-SN
hu-HU nl-NL zh-CN
hy-AM pl-PL zh-TW
id-ID