Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Rename en to en-US.

Mike Cao3ed366ba6dcc
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 9a2bb30c1..0bff776d3 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 4cc28b3b1..a74272a5a 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;