igd:localization
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
igd:localization [2015/02/13 10:56] – created cr-wiki-admin | igd:localization [2024/04/04 08:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Module Localization ====== | ||
+ | |||
+ | ===== Resource Formats ===== | ||
+ | |||
+ | ==== UTF-8 JSON ==== | ||
+ | |||
+ | A root-level dictionary where keys are the texts to be replaced and the values the replacements. | ||
+ | |||
+ | ===== Static Approach ===== | ||
+ | |||
+ | In this approach, a plain HTML file, let's say // | ||
+ | |||
+ | The // | ||
+ | |||
+ | The static approach resp. // | ||
+ | |||
+ | In order to force a Host to use the static approach you need to define the available locales, here //de// and //fr//, in the [[igd: | ||
+ | ===== Dynamic Approach ===== | ||
+ | |||
+ | In this approach, an HTML file will be localized dynamically at run-time. This is done typically in a document-loaded handler by retrieving a resource file (// | ||
+ | |||
+ | The dynamic approach supports the following resource formats: UTF-8 JSON | ||
+ | |||
+ | |||