Skip to content

Commit 9215aef

Browse files
committed
feat: add French
1 parent 7b5c90f commit 9215aef

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

locales/index.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
import { zhCN, enUS, Localization, deDE, ruRU, itIT, nlNL } from '@material-ui/core/locale'
1+
import {
2+
zhCN,
3+
enUS,
4+
Localization,
5+
deDE,
6+
ruRU,
7+
itIT,
8+
nlNL,
9+
frFR,
10+
} from '@material-ui/core/locale'
211

312
export enum Locale {
413
ZH_CN = 'zh-CN',
@@ -8,6 +17,7 @@ export enum Locale {
817
ar = 'ar',
918
it_IT = 'it-IT',
1019
nl_NL = 'nl-NL',
20+
fr_FR = 'fr-FR',
1121
}
1222

1323
export const muiLocale: Record<Locale, Localization> = {
@@ -19,6 +29,7 @@ export const muiLocale: Record<Locale, Localization> = {
1929
[Locale.ar]: enUS,
2030
[Locale.it_IT]: itIT,
2131
[Locale.nl_NL]: nlNL,
32+
[Locale.fr_FR]: frFR,
2233
}
2334

2435
export const configLocale: Record<Locale, string> = {
@@ -29,4 +40,5 @@ export const configLocale: Record<Locale, string> = {
2940
[Locale.ar]: 'العربية',
3041
[Locale.it_IT]: 'Italiano',
3142
[Locale.nl_NL]: 'Nederlands',
43+
[Locale.fr_FR]: 'français',
3244
}

0 commit comments

Comments
 (0)