Skip to content

Commit

Permalink
Language list
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed Dec 18, 2023
1 parent 4e71461 commit a4259ec
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion apps/AppLocalisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ Localisation of each of them is described below.

## Languages and fallback mechanisms

`data/languages.ts` contains localised names and descriptions of categories. The main
`data/languages.ts` contains a list of all languages covered by the site. It has four sections:

<dl>
<dt>languages</dt>
<dd>The main language definition, contains language codes and the human readable names, possibly also regions covered by the language, in case there are linguistic or orthographic variation following the regions, or just to ensure a most useful fallback list depending on region.</dd>
<dt>fallbacks</dt>
<dd>This is a fallback definition for page content when the requested content is not available in the desired language. This makes pages "multilingual", but in a controlled manner.</dd>
<dt>uiOnly</dt>
<dd>Languages that are only used to select page language in the portal, not to select tools = we do not make or promote tools for these languages (at least not in this portal).</dd>
<dt>excludeFromUi</dt>
<dd>Languages for which we do not have any translated content, but for which we still want them listed in the tools list. That is, skip these languages in the language selection drop down for the site.</dd>
</dl>

## Categories

Expand Down

0 comments on commit a4259ec

Please sign in to comment.