forgejo/modules/translation/i18n
Gusted 15aa35a809
fix(i18n): use translate key as fallback
- If the translate key is nonsense (not seen in any of the languages)
then the translate key as-is should be returned as value, this helps
during development. Currently it displays the first entry of the locale
store which is "Home".
- Regression from forgejo/forgejo#6203.
- Added unit test.
2025-01-28 15:03:38 +01:00
..
dummy.go Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
dummy_test.go i18n: Add dummy language for checking translation keys (#5785) 2024-11-05 09:59:04 +00:00
errors.go Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
format.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
i18n.go Initial support for localization and pluralization with go-i18n-JSON-v2 format 2025-01-17 11:21:28 +01:00
i18n_test.go fix(i18n): use translate key as fallback 2025-01-28 15:03:38 +01:00
localestore.go fix(i18n): use translate key as fallback 2025-01-28 15:03:38 +01:00