Server Asset Overrides

This guide effectively documents the usage of the asset_path server configuration option.

Structure

/config/assets/
├── favicon.ico
├── logo.png
└── locales/<lang>[-[variant]]/<namespace>.json

Assets

AssetFile NameDirectoryNotes
Faviconfavicon.icoNoN/A
Logologo.pngNoN/A
Translation LocaleslocalesYessee locales

locales

Important Note

Currently users can only override languages that already exist in this list either by overriding the language itself, or adding a variant form of that language. If you’d like support for another language feel free to make a PR. We also encourage people to make PR’s for variants where the difference in the variants is significant.

Important Note

Users wishing to override the locales files should be aware that we do not provide any guarantee that the file will not change in a breaking way between releases as per our Versioning Policy. Users who are planning to utilize these overrides should either check for changes to the files in the en translation prior to upgrading or Contribute their translation to ensure it is maintained.

The locales directory holds folders of internationalization locales. This directory can be utilized to override these locales. They are the names of locales that are returned by the navigator.language ECMAScript command. These are generally those in the RFC5646 / BCP47 Format specifically the language codes from Crowdin.

Each directory has JSON files which you can explore the format of in the internal/server/locales directory on GitHub. The important part is the key names you wish to override.

A full example for the en-US locale for the portal namespace is locales/en-US/portal.json.

Languages in browsers are supported in two forms. In their language only form such as en for English, and in their variant form such as en-AU for English (Australian). If a user has the browser language en-AU we automatically load the en and en-AU languages, where any keys in the en-AU language take precedence over the en language, and the translations for the en language only applying when a translation from en-AU is not available.

Namespaces

Each file in a locale directory represents a translation namespace. The list of current namespaces are below:

NamespacePurpose
portalPortal Translations

Supported Languages

List of supported languages and variants:

LanguageLocaleOverride Path
Englishenlocales/en/*.json
Afrikaansaflocales/af/*.json
Afrikaansaf-ZAlocales/af-ZA/*.json
العربيةarlocales/ar/*.json
العربيةar-SAlocales/ar-SA/*.json
Българскиbglocales/bg/*.json
Българскиbg-BGlocales/bg-BG/*.json
Češtinacslocales/cs/*.json
Češtinacs-CZlocales/cs-CZ/*.json
Cymraegcylocales/cy/*.json
Cymraegcy-GBlocales/cy-GB/*.json
Danskdalocales/da/*.json
Danskda-DKlocales/da-DK/*.json
Deutschdelocales/de/*.json
Deutschde-DElocales/de-DE/*.json
Ελληνικάellocales/el/*.json
Ελληνικάel-GRlocales/el-GR/*.json
Españoleslocales/es/*.json
Español De Españaes-ESlocales/es-ES/*.json
Eestietlocales/et/*.json
Eestiet-EElocales/et-EE/*.json
Euskaraeulocales/eu/*.json
Euskaraeu-ESlocales/eu-ES/*.json
Suomifilocales/fi/*.json
Suomifi-FIlocales/fi-FI/*.json
Filipinofillocales/fil/*.json
Filipinofil-PHlocales/fil-PH/*.json
Françaisfrlocales/fr/*.json
Françaisfr-FRlocales/fr-FR/*.json
Gaeilgegalocales/ga/*.json
Gaeilgega-IElocales/ga-IE/*.json
हिन्दीhilocales/hi/*.json
हिन्दीhi-INlocales/hi-IN/*.json
Hrvatskihrlocales/hr/*.json
Hrvatskihr-HRlocales/hr-HR/*.json
Magyarhulocales/hu/*.json
Magyarhu-HUlocales/hu-HU/*.json
Indonesiaidlocales/id/*.json
Indonesiaid-IDlocales/id-ID/*.json
Italianoitlocales/it/*.json
Italianoit-ITlocales/it-IT/*.json
日本語jalocales/ja/*.json
日本語ja-JPlocales/ja-JP/*.json
한국어kolocales/ko/*.json
한국어ko-KRlocales/ko-KR/*.json
kulocales/ku/*.json
ku-TRlocales/ku-TR/*.json
Lietuviųltlocales/lt/*.json
Lietuviųlt-LTlocales/lt-LT/*.json
Latviešulvlocales/lv/*.json
Latviešulv-LVlocales/lv-LV/*.json
Melayumslocales/ms/*.json
Melayums-MYlocales/ms-MY/*.json
Maltimtlocales/mt/*.json
Maltimt-MTlocales/mt-MT/*.json
Norsk Bokmålnblocales/nb/*.json
Norsk Bokmålnb-NOlocales/nb-NO/*.json
नेपालीnelocales/ne/*.json
नेपालीne-NPlocales/ne-NP/*.json
Nederlandsnllocales/nl/*.json
Nederlandsnl-NLlocales/nl-NL/*.json
Norsk Bokmålnolocales/no/*.json
Norsk Bokmålno-NOlocales/no-NO/*.json
Polskipllocales/pl/*.json
Polskipl-PLlocales/pl-PL/*.json
Portuguêsptlocales/pt/*.json
Portuguêspt-BRlocales/pt-BR/*.json
Português Europeupt-PTlocales/pt-PT/*.json
Românărolocales/ro/*.json
Românăro-ROlocales/ro-RO/*.json
Русскийrulocales/ru/*.json
Русскийru-RUlocales/ru-RU/*.json
sclocales/sc/*.json
sc-ITlocales/sc-IT/*.json
Slovenčinasklocales/sk/*.json
Slovenčinask-SKlocales/sk-SK/*.json
Slovenščinasllocales/sl/*.json
Slovenščinasl-SIlocales/sl-SI/*.json
Soomaalisolocales/so/*.json
Soomaaliso-SOlocales/so-SO/*.json
Српскиsrplocales/srp/*.json
sslocales/ss/*.json
ss-ZAlocales/ss-ZA/*.json
sulocales/su/*.json
su-IDlocales/su-ID/*.json
Svenskasvlocales/sv/*.json
Svenskasv-SElocales/sv-SE/*.json
Kiswahiliswlocales/sw/*.json
Kiswahilisw-KElocales/sw-KE/*.json
தமிழ்talocales/ta/*.json
தமிழ்ta-INlocales/ta-IN/*.json
ไทยthlocales/th/*.json
ไทยth-THlocales/th-TH/*.json
Filipinotl-PHlocales/tl-PH/*.json
Türkçetrlocales/tr/*.json
Türkçetr-TRlocales/tr-TR/*.json
tylocales/ty/*.json
ty-PFlocales/ty-PF/*.json
Українськаuklocales/uk/*.json
Українськаuk-UAlocales/uk-UA/*.json
veclocales/vec/*.json
vec-ITlocales/vec-IT/*.json
Tiếng Việtvilocales/vi/*.json
Tiếng Việtvi-VNlocales/vi-VN/*.json
ייִדישyilocales/yi/*.json
ייִדישyi-DElocales/yi-DE/*.json
中文zhlocales/zh/*.json
中文zh-CNlocales/zh-CN/*.json
繁體中文zh-HKlocales/zh-HK/*.json
中文zh-SGlocales/zh-SG/*.json
繁體中文zh-TWlocales/zh-TW/*.json

More information may be available from the Internationalization Reference Guide.