Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Esperanto locale to options.ts #337

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion frontend/src/i18n/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const defaultNS = 'common'
export const cookieName = 'i18next'
export const languages = [
fallbackLng,
'en-GB', 'de', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'pl', 'pt-PT', 'pt-BR', 'ru',
'en-GB', 'de', 'eo', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'pl', 'pt-PT', 'pt-BR', 'ru',
] as const

export const getOptions = (lng = fallbackLng, ns: InitOptions['ns'] = defaultNS): InitOptions => ({
Expand Down Expand Up @@ -45,6 +45,11 @@ export const languageDetails: Record<typeof languages[number], LanguageDetails>
weekStart: 1,
timeFormat: '24h',
},
'eo': { // Esperanto
name: 'Esperanto',
weekStart: 1,
timeFormat: '24h',
},
'es': { // Spanish
name: 'Español',
weekStart: 1,
Expand Down