From f8f567a8bd910013ed987ff68562d156836aa55d Mon Sep 17 00:00:00 2001 From: Kerem AR Date: Mon, 24 Nov 2025 17:13:28 +0300 Subject: [PATCH] Add demo for locale plugin configuration - Add README with locale plugin examples - Add locale.yaml with minimal configuration - Demonstrates systemLocale and ignoreAcceptLanguage settings --- demos/locale/README.md | 40 ++++++++++++++++++++++++++++++++++++++++ demos/locale/locale.yaml | 9 +++++++++ 2 files changed, 49 insertions(+) create mode 100644 demos/locale/README.md create mode 100644 demos/locale/locale.yaml diff --git a/demos/locale/README.md b/demos/locale/README.md new file mode 100644 index 0000000000..5ed2d673ea --- /dev/null +++ b/demos/locale/README.md @@ -0,0 +1,40 @@ +# Configure Locale Plugin + +## Sample Configuration + +Sample configuration for the [Locale plugin](https://plugins.jenkins.io/locale). + +This plugin allows you to set Jenkins UI language and ignore browser language preferences. + +### Minimal Configuration + +Set Jenkins UI to English: + +```yaml +appearance: + locale: + systemLocale: "en" +``` + +### Full Configuration + +Set Jenkins UI to English and ignore browser Accept-Language header: + +```yaml +appearance: + locale: + systemLocale: "en" + ignoreAcceptLanguage: true +``` + +## Options + +- `systemLocale`: The locale to use (e.g., "en", "en_US", "de", "fr", "ja", "zh_CN") +- `ignoreAcceptLanguage`: If true, ignore browser's Accept-Language header and always use systemLocale + +## Notes + +- Without `ignoreAcceptLanguage: true`, Jenkins will still respect user's browser language settings +- This is useful for teams that want consistent UI language regardless of browser settings +- Supported locales depend on installed language packs + diff --git a/demos/locale/locale.yaml b/demos/locale/locale.yaml new file mode 100644 index 0000000000..09dc41f473 --- /dev/null +++ b/demos/locale/locale.yaml @@ -0,0 +1,9 @@ +--- +# Locale Plugin Configuration +# Forces Jenkins UI to English and ignores browser language preferences + +appearance: + locale: + systemLocale: "en" + ignoreAcceptLanguage: true +