diff --git a/src/locale/index.js b/src/locale/index.js index 38046f98b..dc7111aab 100644 --- a/src/locale/index.js +++ b/src/locale/index.js @@ -12,6 +12,8 @@ import * as csCZ from './cs-CZ/index.js' import * as koKR from './ko-KR/index.js' import * as deDE from './de-DE/index.js' import * as huHU from './hu-HU/index.js' +import * as frFR from './fr-FR/index.js' + const locale = { 'zh-CN': zhCN, @@ -28,5 +30,6 @@ const locale = { 'es-ES': esES, 'hu-HU': huHU, 'de-DE': deDE, + 'fr-FR': frFR, } export default locale diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js index 1a3ec64fd..bbad3f17c 100644 --- a/src/plugins/i18n.js +++ b/src/plugins/i18n.js @@ -2,7 +2,7 @@ import Vue from 'vue' import VueI18n from 'vue-i18n' import { formatDistanceToNow, parseISO, formatRelative } from 'date-fns' import { pick } from 'accept-language-parser' -import { enUS, zhCN, zhTW, ptBR, th, vi, ja, es, id, cs, de, hu, ko } from 'date-fns/locale' +import { enUS, zhCN, zhTW, ptBR, th, vi, ja, es, id, cs, de, hu, ko, fr } from 'date-fns/locale' import locales from '@/locale' export const supportedLanguages = [ @@ -20,6 +20,7 @@ export const supportedLanguages = [ 'id-ID', 'cs-CZ', 'hu-HU', + 'fr-FR' ] export const dateLocales = Object.freeze({ @@ -37,6 +38,7 @@ export const dateLocales = Object.freeze({ 'ko-KR': ko, 'de-DE': de, 'hu-HU': hu, + 'fr-FR': fr }) export function pickLanguage (headerStr) {