mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Adding arabic language
This commit is contained in:
		 Khaled Emad
					Khaled Emad
				
			
				
					committed by
					
						 Michael Shamoon
						Michael Shamoon
					
				
			
			
				
	
			
			
			 Michael Shamoon
						Michael Shamoon
					
				
			
						parent
						
							06c62abfbd
						
					
				
				
					commit
					906d5d0bab
				
			| @@ -16,6 +16,7 @@ | |||||||
|       "i18n": { |       "i18n": { | ||||||
|         "sourceLocale": "en-US", |         "sourceLocale": "en-US", | ||||||
|         "locales": { |         "locales": { | ||||||
|  |           "ar-AR": "src/locale/messages.ar_AR.xlf", | ||||||
|           "be-BY": "src/locale/messages.be_BY.xlf", |           "be-BY": "src/locale/messages.be_BY.xlf", | ||||||
|           "cs-CZ": "src/locale/messages.cs_CZ.xlf", |           "cs-CZ": "src/locale/messages.cs_CZ.xlf", | ||||||
|           "da-DK": "src/locale/messages.da_DK.xlf", |           "da-DK": "src/locale/messages.da_DK.xlf", | ||||||
|   | |||||||
| @@ -80,6 +80,7 @@ import { TourNgBootstrapModule } from 'ngx-ui-tour-ng-bootstrap' | |||||||
| import { MailAccountEditDialogComponent } from './components/common/edit-dialog/mail-account-edit-dialog/mail-account-edit-dialog.component' | import { MailAccountEditDialogComponent } from './components/common/edit-dialog/mail-account-edit-dialog/mail-account-edit-dialog.component' | ||||||
| import { MailRuleEditDialogComponent } from './components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component' | import { MailRuleEditDialogComponent } from './components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component' | ||||||
|  |  | ||||||
|  | import localeAr from '@angular/common/locales/ar' | ||||||
| import localeBe from '@angular/common/locales/be' | import localeBe from '@angular/common/locales/be' | ||||||
| import localeCs from '@angular/common/locales/cs' | import localeCs from '@angular/common/locales/cs' | ||||||
| import localeDa from '@angular/common/locales/da' | import localeDa from '@angular/common/locales/da' | ||||||
| @@ -100,6 +101,7 @@ import localeSv from '@angular/common/locales/sv' | |||||||
| import localeTr from '@angular/common/locales/tr' | import localeTr from '@angular/common/locales/tr' | ||||||
| import localeZh from '@angular/common/locales/zh' | import localeZh from '@angular/common/locales/zh' | ||||||
|  |  | ||||||
|  | registerLocaleData(localeAr) | ||||||
| registerLocaleData(localeBe) | registerLocaleData(localeBe) | ||||||
| registerLocaleData(localeCs) | registerLocaleData(localeCs) | ||||||
| registerLocaleData(localeDa) | registerLocaleData(localeDa) | ||||||
|   | |||||||
| @@ -146,6 +146,12 @@ export class SettingsService { | |||||||
|         englishName: 'English (US)', |         englishName: 'English (US)', | ||||||
|         dateInputFormat: 'mm/dd/yyyy', |         dateInputFormat: 'mm/dd/yyyy', | ||||||
|       }, |       }, | ||||||
|  |       { | ||||||
|  |         code: 'ar-ar', | ||||||
|  |         name: $localize`Arabic`, | ||||||
|  |         englishName: 'Arabic', | ||||||
|  |         dateInputFormat: 'yyyy-mm-dd', | ||||||
|  |       }, | ||||||
|       { |       { | ||||||
|         code: 'be-by', |         code: 'be-by', | ||||||
|         name: $localize`Belarusian`, |         name: $localize`Belarusian`, | ||||||
|   | |||||||
| @@ -420,6 +420,7 @@ LANGUAGE_CODE = "en-us" | |||||||
|  |  | ||||||
| LANGUAGES = [ | LANGUAGES = [ | ||||||
|     ("en-us", _("English (US)")),  # needs to be first to act as fallback language |     ("en-us", _("English (US)")),  # needs to be first to act as fallback language | ||||||
|  |     ("ar-ar", _("Arabic")), | ||||||
|     ("be-by", _("Belarusian")), |     ("be-by", _("Belarusian")), | ||||||
|     ("cs-cz", _("Czech")), |     ("cs-cz", _("Czech")), | ||||||
|     ("da-dk", _("Danish")), |     ("da-dk", _("Danish")), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user