Skip to content

Commit 1ab59f7

Browse files
CodeWithEmadarbrandes
authored andcommitted
feat: Persian language support added
1 parent 0a8bbc9 commit 1ab59f7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/i18n/lib.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const rtlLocales = [
5555
'ar', // Arabic
5656
'he', // Hebrew
5757
'fa', // Farsi (not currently supported)
58+
'fa-ir', // Farsi Iran
5859
'ur', // Urdu (not currently supported)
5960
];
6061

src/i18n/lib.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ describe('lib', () => {
188188
expect(isRtl('ar')).toBe(true);
189189
expect(isRtl('he')).toBe(true);
190190
expect(isRtl('fa')).toBe(true);
191+
expect(isRtl('fa-ir')).toBe(true);
191192
expect(isRtl('ur')).toBe(true);
192193
});
193194

0 commit comments

Comments
 (0)