What problem does it solve?
This skill prevents missing or inconsistent localization keys in the SpotiArr frontend by enforcing how languages, i18n resources, and key conventions are maintained.
Core Features & Use Cases
- Language synchronization via backend setting: Ensures UI language follows the
UI_LANGUAGE backend configuration using useLanguageSync rather than ad-hoc browser detection or manual language switching.
- Safe translation handling: Locks
escapeValue: false expectations so translation strings can include HTML without accidental escaping, while warning against untrusted content.
- Translation-key discipline: Standardizes dot-notation keys and interpolation usage, and requires adding new keys across all locale files to avoid silent fallbacks.
Quick Start
Update SpotiArr’s frontend by adding your new translation keys in both en.json and es.json, then follow the key conventions used in src/locales while relying on UI_LANGUAGE for language switching.