Skip to content

Commit

Permalink
add french as a option
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Nov 13, 2023
1 parent 6de8a08 commit b8b52c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/locales/ChangeLanguage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const LanguageSelector = (): JSX.Element => {
<option value="ru-RU">Русский</option>
<option value="de-DE">Deutsch</option>
<option value="nl-NL">Nederlands</option>
<option value="fr-FR">Français</option>
</SelectSecondary>
);
};
Expand Down
5 changes: 3 additions & 2 deletions src/locales/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import { format, formatDistanceToNowStrict } from "date-fns";
import { enUS, tr, zhCN, nl, ru, de } from "date-fns/locale";
import { enUS, tr, zhCN, nl, ru, de, fr } from "date-fns/locale";
import { registerLocale } from "i18n-iso-countries";
import resourcesToBackend from "i18next-resources-to-backend";

Expand All @@ -13,9 +13,10 @@ const locales = {
"nl-NL": nl,
"de-DE": de,
"ru-RU": ru,
"fr-FR": fr,
};

const langFile = { "de-DE": "de_DE" };
const langFile = { "de-DE": "de_DE", "fr-FR": "fr_FR" };

i18n
.use(
Expand Down

0 comments on commit b8b52c4

Please sign in to comment.