Skip to content

Commit

Permalink
Added Urdu as RTL list
Browse files Browse the repository at this point in the history
Resolves #16900.
  • Loading branch information
smtaha512 committed Aug 18, 2024
1 parent 09e2684 commit afdee03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/ckeditor5-utils/src/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const RTL_LANGUAGE_CODES = [
'fa', 'per', 'fas', // Persian
'he', 'heb', // Hebrew
'ku', 'kur', // Kurdish
'ug', 'uig' // Uighur, Uyghur
'ug', 'uig', // Uighur, Uyghur
'ur' // Urdu
];

/**
Expand Down
5 changes: 4 additions & 1 deletion packages/ckeditor5-utils/tests/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ describe( 'language', () => {

// Dhivehi, Divehi
{ code: 'dv', textDirection: 'rtl' },
{ code: 'div', textDirection: 'rtl' }
{ code: 'div', textDirection: 'rtl' },

// Urdu
{ code: 'ur', textDirection: 'rtl' }
].forEach( ( { code, textDirection } ) => {
it( `determines the "${ code }" language direction`, () => {
expect( getLanguageDirection( code ) ).to.equal( textDirection );
Expand Down

0 comments on commit afdee03

Please sign in to comment.