From 3ed366ba6dcc3ff618d9b2fe6bbf98f8792c57ff Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 12 Sep 2020 03:49:31 -0700 Subject: [PATCH] Rename en to en-US. --- lang/{en.json => en-US.json} | 0 lib/lang.js | 2 +- redux/actions/app.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename lang/{en.json => en-US.json} (100%) diff --git a/lang/en.json b/lang/en-US.json similarity index 100% rename from lang/en.json rename to lang/en-US.json diff --git a/lib/lang.js b/lib/lang.js index 9a2bb30c..0bff776d 100644 --- a/lib/lang.js +++ b/lib/lang.js @@ -1,6 +1,6 @@ import { format } from 'date-fns'; import { enUS, nl, zhCN, tr, ru, de, ja } from 'date-fns/locale'; -import enMessages from 'lang-compiled/en.json'; +import enMessages from 'lang-compiled/en-US.json'; import nlMessages from 'lang-compiled/nl-NL.json'; import zhCNMessages from 'lang-compiled/zh-CN.json'; import trTRMessages from 'lang-compiled/tr-TR.json'; diff --git a/redux/actions/app.js b/redux/actions/app.js index 4cc28b3b..a74272a5 100644 --- a/redux/actions/app.js +++ b/redux/actions/app.js @@ -2,7 +2,7 @@ import { createSlice } from '@reduxjs/toolkit'; const app = createSlice({ name: 'app', - initialState: { locale: 'en' }, + initialState: { locale: 'en-US' }, reducers: { updateApp(state, action) { state = action.payload;