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
2 changes: 1 addition & 1 deletion js/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import i18next from 'i18next';
import store from './store'


const availableLanguages = ['en', 'ja', 'ru', 'uk', 'zh_CN'];
const availableLanguages = ['en', 'ja', 'ru', 'bg', 'uk', 'zh_CN'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Bulgarian option shows false 🐞 Bug ✓ Correctness

bg is added to availableLanguages, but locale/en/messages.json does not define language_bg.
The language selector builds option labels via i18n.getMessage('language_' + lng), which returns
false when the key doesn’t exist, so the Bulgarian entry will display incorrectly.
Agent Prompt
### Issue description
Bulgarian (`bg`) was added to the supported languages list, but the base English locale is missing the `language_bg` label. The language selector builds each option label by translating `language_<code>` and will render `false` when the key doesn’t exist.

### Issue Context
- The app iterates over `availableLanguages` and uses `i18n.getMessage('language_' + lng)` to label each dropdown option.
- `i18n.getMessage` returns `false` if the key doesn’t exist.
- i18next fallback is configured to English (`fallbackLng: 'en'`), so English must contain labels for all supported languages.

### Fix Focus Areas
- js/localization.js[9-9]
- js/configurator_main.js[345-347]
- locale/en/messages.json[1-28]

### Proposed change
Add:
```json
"language_bg": {
  "message": "Български",
  "_comment": "Don't translate!"
}
```
near the other `language_*` entries in `locale/en/messages.json`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


const i18n = {};

Expand Down
Loading