feat: add Japanese (ja) localization
- Add ja translations for common, settings, and chores namespaces - Register ja in AVAILABLE_LANGUAGES so it appears in the language picker - Import moment/locale/ja so date and relative-time formatting uses Japanese
This commit is contained in:
@@ -27,6 +27,7 @@ export const AVAILABLE_LANGUAGES = [
|
||||
{ code: 'fr', name: 'French', nativeName: 'Français' },
|
||||
{ code: 'nl', name: 'Dutch', nativeName: 'Nederlands' },
|
||||
{ code: 'pt', name: 'Portuguese (Brazil)', nativeName: 'Português (Brasil)' },
|
||||
{ code: 'ja', name: 'Japanese', nativeName: '日本語' },
|
||||
]
|
||||
|
||||
export const LocalizationProvider = ({ children }) => {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import i18n from 'i18next'
|
||||
import LanguageDetector from 'i18next-browser-languagedetector'
|
||||
import HttpBackend from 'i18next-http-backend'
|
||||
import 'moment/locale/ja'
|
||||
import { initReactI18next } from 'react-i18next'
|
||||
|
||||
i18n
|
||||
|
||||
Reference in New Issue
Block a user