feat(core): add i18n localization system, Italian translation, and LanguageSelector component - #3327
Conversation
…nguageSelector component - add i18n locale context with reactive LocaleState and translation dictionary - add full Italian (it-IT) translation for UI controls, calendar presets, and date ranges - add <LanguageSelector> / language_selector tag supporting pills, buttons, and dropdown styles - add locale configuration in project settings schema - support dynamic locale prop in RangeCalendar and date pickers - add unit test suites for i18n and LanguageSelector
|
Someone is attempting to deploy a commit to the Evidence Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @archiewood @hughess! 👋 This PR adds a complete i18n localization system, full Italian translation (it-IT), and the component. Whenever you have time, we'd appreciate your review! |
|
Hi @FrancescoCastaldi, thanks for this PR. We have a translations system in the product - is there a reason that doesn't work for you? |
|
@hughess The existing translation system is great for translating markdown pages and routing, but this PR focuses on the built-in component UI strings (like table pagination 'Page X of Y', search placeholders, CSV download labels, date picker preset names like 'Last 7 days') and adds the |
Description
This PR introduces native Internationalization (i18n), Italian Translation (
it-IT), and the<LanguageSelector>component to Evidence.Features
core/src/i18n):LocaleStatecontext with$statefor dynamic language switching.t(key, params)and localized date/number formatting usingIntl.DateTimeFormatandIntl.NumberFormat.it-IT):<LanguageSelector>(language_selector) Component:variant="pills|buttons").localefield toprojectSettingsSchema(defaulting toen-US).locale-contextandLanguageSelectorwith 100% pass.