Skip to content

Commit

Permalink
feat: Add locale direction (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend authored Aug 26, 2024
1 parent 7b07455 commit 56ad493
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ export const defaultLocale = 'en';
export const supportedBaseLocales = ['ar', 'cy', 'da', 'de', 'en', 'es', 'fr', 'hi', 'ja', 'ko', 'mi', 'nl', 'pt', 'sv', 'tr', 'zh'];
export const supportedLangpacks = ['ar', 'cy', 'da', 'de', 'en', 'en-gb', 'es', 'es-es', 'fr', 'fr-fr', 'fr-on', 'hi', 'ja', 'ko', 'mi', 'nl', 'pt', 'sv', 'tr', 'zh-cn', 'zh-tw'];
export const supportedLocalesDetails = [
{ code: 'ar-sa', name: 'العربية (المملكة العربية السعودية)' },
{ code: 'cy-gb', name: 'Cymraeg (Y Deyrnas Unedig)' },
{ code: 'da-dk', name: 'Dansk (danmark)' },
{ code: 'de-de', name: 'Deutsch (Deutschland)' },
{ code: 'en-ca', name: 'English (Canada)' },
{ code: 'en-gb', name: 'English (United Kingdom)' },
{ code: 'en-us', name: 'English (United States)' },
{ code: 'es-es', name: 'Español (España)' },
{ code: 'es-mx', name: 'Español (Latinoamérica)' },
{ code: 'fr-ca', name: 'Français (Canada)' },
{ code: 'fr-fr', name: 'Français (France)' },
{ code: 'fr-on', name: 'Français (Ontario)' },
{ code: 'hi-in', name: 'हिंदी (भारत)' },
{ code: 'ja-jp', name: '日本語 (日本)' },
{ code: 'ko-kr', name: '한국어 (대한민국)' },
{ code: 'mi-nz', name: 'Māori (Aotearoa)' },
{ code: 'nl-nl', name: 'Nederlands (Nederland)' },
{ code: 'pt-br', name: 'Português (Brasil)' },
{ code: 'sv-se', name: 'Svenska (Sverige)' },
{ code: 'tr-tr', name: 'Türkçe (Türkiye)' },
{ code: 'zh-cn', name: '中文(简体)' },
{ code: 'zh-tw', name: '中文(繁体)' }
{ code: 'ar-sa', dir: 'rtl', name: 'العربية (المملكة العربية السعودية)' },
{ code: 'cy-gb', dir: 'ltr', name: 'Cymraeg (Y Deyrnas Unedig)' },
{ code: 'da-dk', dir: 'ltr', name: 'Dansk (danmark)' },
{ code: 'de-de', dir: 'ltr', name: 'Deutsch (Deutschland)' },
{ code: 'en-ca', dir: 'ltr', name: 'English (Canada)' },
{ code: 'en-gb', dir: 'ltr', name: 'English (United Kingdom)' },
{ code: 'en-us', dir: 'ltr', name: 'English (United States)' },
{ code: 'es-es', dir: 'ltr', name: 'Español (España)' },
{ code: 'es-mx', dir: 'ltr', name: 'Español (Latinoamérica)' },
{ code: 'fr-ca', dir: 'ltr', name: 'Français (Canada)' },
{ code: 'fr-fr', dir: 'ltr', name: 'Français (France)' },
{ code: 'fr-on', dir: 'ltr', name: 'Français (Ontario)' },
{ code: 'hi-in', dir: 'ltr', name: 'हिंदी (भारत)' },
{ code: 'ja-jp', dir: 'ltr', name: '日本語 (日本)' },
{ code: 'ko-kr', dir: 'ltr', name: '한국어 (대한민국)' },
{ code: 'mi-nz', dir: 'ltr', name: 'Māori (Aotearoa)' },
{ code: 'nl-nl', dir: 'ltr', name: 'Nederlands (Nederland)' },
{ code: 'pt-br', dir: 'ltr', name: 'Português (Brasil)' },
{ code: 'sv-se', dir: 'ltr', name: 'Svenska (Sverige)' },
{ code: 'tr-tr', dir: 'ltr', name: 'Türkçe (Türkiye)' },
{ code: 'zh-cn', dir: 'ltr', name: '中文(简体)' },
{ code: 'zh-tw', dir: 'ltr', name: '中文(繁体)' }
];
export const supportedLocales = supportedLocalesDetails.map((l) => l.code);

Expand Down

0 comments on commit 56ad493

Please sign in to comment.