Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions demos/locale/README.md
Original file line number Diff line number Diff line change
@@ -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

9 changes: 9 additions & 0 deletions demos/locale/locale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# Locale Plugin Configuration
# Forces Jenkins UI to English and ignores browser language preferences

appearance:
locale:
systemLocale: "en"
ignoreAcceptLanguage: true