Skip to content

Commit

Permalink
feat: new translations en-US and zh-CN
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissium committed Feb 13, 2024
1 parent 966eb7a commit 4213883
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/l10n.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import LocalizedStrings from 'react-localization';
import { RTL_LANGS } from './config';
import enGB from './translations/en-GB.json';
import enUS from './translations/en-US.json';
import zhCN from './translations/zh-CN.json';

export const localisedStrings = new LocalizedStrings({
'en-GB': enGB,
'en-US': enUS,
'zh-CN': zhCN
});

export const interfaceLangIsRTL = RTL_LANGS.includes(localisedStrings.getLanguage());

0 comments on commit 4213883

Please sign in to comment.