nuke/lib
Laurent Laffont ad5430612f
feat: implement localization system (#716)
* lib/localization: implement localization system

Locale files are placed in lib/localization/locales/. If you add a
locale, update manifest.json with available locales.

* Exclude locales from check spelling

* tests(lib/localization): add comprehensive translations test

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix(challenge/metarefresh): enable localization

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix: use simple syntax for localization in templ

Also localize CELPHASE into French according to the wishes of the
artist.

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore:(js): fix forbidden patterns

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: add goi18n to tools

Signed-off-by: Xe Iaso <me@xeiaso.net>

* test(lib/localization): dynamically determine the list of supported languages

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
2025-06-27 17:49:15 +00:00
..
challenge feat: implement localization system (#716) 2025-06-27 17:49:15 +00:00
localization feat: implement localization system (#716) 2025-06-27 17:49:15 +00:00
policy chore: Remove unused/dead code (#703) 2025-06-25 09:31:33 -04:00
testdata fix(config): actually load threshold config (#696) 2025-06-19 17:13:01 -04:00
anubis.go feat: implement localization system (#716) 2025-06-27 17:49:15 +00:00
anubis_test.go feat: add default OpenGraph tags to configuration file (#694) 2025-06-19 18:00:44 -04:00
config.go feat: implement localization system (#716) 2025-06-27 17:49:15 +00:00
config_test.go fix(config): actually load threshold config (#696) 2025-06-19 17:13:01 -04:00
http.go feat: implement localization system (#716) 2025-06-27 17:49:15 +00:00
http_test.go feat: dynamic cookie domains (#722) 2025-06-26 12:11:59 +00:00