Skip to content

Commit

Permalink
feat: add Arabic and Dutch translations
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Oct 12, 2022
1 parent 9ac2fd0 commit c0c0422
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ this.$cookies.modal = true
```
#### Default: en,
#### Currently available:
- ar
- de
- en
- es
Expand All @@ -81,6 +82,7 @@ this.$cookies.modal = true
- hu
- it
- ja
- nl
- no
- pt
- ru
Expand Down
19 changes: 19 additions & 0 deletions src/runtime/locale/ar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { I18n } from '../../types'

export default {
acceptAll: 'قبول الكل',
acceptNecessary: 'تقبل الضرورة',
barDescription:
'نحن نستخدم ملفات تعريف الارتباط الخاصة بنا وملفات تعريف الارتباط الخاصة بالجهات الخارجية حتى نتمكن من عرض هذا الموقع وفهم كيفية استخدامه بشكل أفضل ، بهدف تحسين الخدمات التي نقدمها. إذا واصلت التصفح ، فإننا نعتبر أنك قبلت ملفات تعريف الارتباط.',
barTitle: 'ملفات تعريف الارتباط',
blockedIframe: 'لرؤية هذا ، يرجى تمكين ملفات تعريف الارتباط الوظيفية',
close: 'إغلاق',
declineAll: 'حذف الكل',
functional: 'ملفات تعريف الارتباط الوظيفية',
here: 'هنا',
manageCookies: 'إدارة ملفات تعريف الارتباط',
necessary: 'ملفات تعريف الارتباط الضرورية',
optional: 'ملفات تعريف الارتباط الاختيارية',
save: 'حفظ',
unsaved: 'لديك إعدادات غير محفوظة',
} as I18n
4 changes: 3 additions & 1 deletion src/runtime/locale/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ar from './ar'
import de from './de'
import en from './en'
import es from './es'
Expand All @@ -6,9 +7,10 @@ import hr from './hr'
import hu from './hu'
import it from './it'
import ja from './ja'
import nl from './nl'
import no from './no'
import pt from './pt'
import ru from './ru'
import uk from './uk'

export const locales = [de, en, es, fr, hr, hu, it, ja, no, pt, ru, uk]
export const locales = [ar, de, en, es, fr, hr, hu, it, ja, nl, no, pt, ru, uk]
20 changes: 20 additions & 0 deletions src/runtime/locale/nl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { I18n } from '../../types'

export default {
acceptAll: 'Accepteer alles',
acceptNecessary: 'Accepteer noodzakelijk',
barDescription:
'We gebruiken onze eigen cookies en third-party cookies om onze site te tonen en om te leren hoe deze gebruikt wordt, met het oog om de services die we verlenen te verbeteren. Door verder te gaan op onze site gaan we ervanuit dat hiermee akkoord gegaan wordt.',
barTitle: 'Cookies',
blockedIframe:
'Om dit te kunnen bekijken dienen functionele cookies geaccepteerd te worden',
close: 'Sluiten',
declineAll: 'Verwijder alles',
functional: 'Functionele cookies',
here: 'hier',
manageCookies: 'Beheer cookies',
necessary: 'Noodzakelijke cookies',
optional: 'Optionele cookies',
save: 'Opslaan',
unsaved: 'Er zijn niet-opgeslagen instellingen',
} as I18n
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface I18n {
}

export enum Locale {
AR = 'ar',
DE = 'de',
EN = 'en',
ES = 'es',
Expand All @@ -37,6 +38,7 @@ export enum Locale {
HU = 'hu',
IT = 'it',
JA = 'ja',
NL = 'nl',
NO = 'no',
PT = 'pt',
RU = 'ru',
Expand Down

0 comments on commit c0c0422

Please sign in to comment.