From a4259ecb0e9c60f25efbdcb14cee555d0f500fe4 Mon Sep 17 00:00:00 2001 From: Sjur N Moshagen Date: Mon, 18 Dec 2023 13:44:40 +0200 Subject: [PATCH] Language list --- apps/AppLocalisation.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/AppLocalisation.md b/apps/AppLocalisation.md index c73d4e5a..7a3ae853 100644 --- a/apps/AppLocalisation.md +++ b/apps/AppLocalisation.md @@ -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: + +
+
languages
+
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.
+
fallbacks
+
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.
+
uiOnly
+
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).
+
excludeFromUi
+
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.
+
## Categories