Skip to content

Commit

Permalink
feat: persian language support added
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithEmad committed Jan 18, 2023
1 parent 212a270 commit ce67e6f
Show file tree
Hide file tree
Showing 3 changed files with 373 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/account-settings/site-language/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ const siteLanguageList = [
name: 'Español (Latinoamérica)',
released: true,
},
{
code: 'fa-ir',
name: 'فارسی',
released: true,
},
{
code: 'fr',
name: 'Français',
Expand Down
16 changes: 9 additions & 7 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import arMessages from './messages/ar.json';
import frMessages from './messages/fr.json';
import deMessages from './messages/de.json';
import es419Messages from './messages/es_419.json';
import zhcnMessages from './messages/zh_CN.json';
import ptMessages from './messages/pt.json';
import faIRMessages from './messages/fa_IR.json';
import frMessages from './messages/fr.json';
import frCAMessages from './messages/fr_CA.json';
import hiMessages from './messages/hi.json';
import itMessages from './messages/it.json';
import ukMessages from './messages/uk.json';
import deMessages from './messages/de.json';
import ptMessages from './messages/pt.json';
import ruMessages from './messages/ru.json';
import hiMessages from './messages/hi.json';
import frCAMessages from './messages/fr_CA.json';
import ukMessages from './messages/uk.json';
import zhcnMessages from './messages/zh_CN.json';
// no need to import en messages-- they are in the defaultMessage field

const messages = {
ar: arMessages,
'es-419': es419Messages,
'fa-ir': faIRMessages,
fr: frMessages,
'zh-cn': zhcnMessages,
pt: ptMessages,
Expand Down
Loading

0 comments on commit ce67e6f

Please sign in to comment.