Added lt-LT and ur-PK languages. Changed lang build.

This commit is contained in:
Mike Cao 2022-02-15 20:34:16 -08:00
parent 7cbdaac59f
commit 251617ffc5
49 changed files with 31156 additions and 8 deletions

View file

@ -6,7 +6,7 @@ import { get, setItem } from 'lib/web';
import { LOCALE_CONFIG } from 'lib/constants';
import { getDateLocale, getTextDirection } from 'lib/lang';
import useForceUpdate from 'hooks/useForceUpdate';
import enUS from 'public/lang/en-US.json';
import enUS from 'public/messages/en-US.json';
const messages = {
'en-US': enUS,
@ -21,7 +21,7 @@ export default function useLocale() {
const dateLocale = getDateLocale(locale);
async function loadMessages(locale) {
const { ok, data } = await get(`${basePath}/lang/${locale}.json`);
const { ok, data } = await get(`${basePath}/messages/${locale}.json`);
if (ok) {
messages[locale] = data;