0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-24 22:41:28 -05:00

refactor: update language code to ar-SA (#6518)

This commit is contained in:
Gao Sun 2024-08-27 17:14:08 +08:00 committed by GitHub
parent 6951e31578
commit 652898f978
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
102 changed files with 14 additions and 12 deletions

View file

@ -3,4 +3,4 @@
"@logto/phrases": minor
---
add ar-AR language (credit to @zaaakher)
add ar-SA language (credit to @zaaakher)

View file

@ -3,7 +3,7 @@ import { languages, fallback } from '@logto/language-kit';
import type { NormalizeKeyPaths } from '@silverhand/essentials';
import { z } from 'zod';
import arAR from './locales/ar-ar/index.js';
import ar from './locales/ar/index.js';
import de from './locales/de/index.js';
import en from './locales/en/index.js';
import es from './locales/es/index.js';
@ -26,7 +26,7 @@ export type { LocalePhrase } from './types.js';
export type I18nKey = NormalizeKeyPaths<typeof en.translation>;
export const builtInLanguages = [
'ar-AR',
'ar',
'de',
'en',
'es',
@ -56,7 +56,7 @@ export type BuiltInLanguageTag = z.infer<typeof builtInLanguageTagGuard>;
export type Resource = Record<BuiltInLanguageTag, LocalePhrase>;
const resource: Resource = {
'ar-AR': arAR,
ar,
de,
en,
es,

View file

@ -12,7 +12,7 @@ import mfa from './mfa.js';
import secondary from './secondary.js';
import user_scopes from './user-scopes.js';
const ar_ar = {
const ar = {
translation: {
input,
secondary,
@ -26,4 +26,4 @@ const ar_ar = {
},
} satisfies DeepPartial<LocalePhrase>;
export default Object.freeze(ar_ar);
export default Object.freeze(ar);

View file

@ -3,7 +3,7 @@ import { languages, fallback } from '@logto/language-kit';
import type { DeepPartial, NormalizeKeyPaths } from '@silverhand/essentials';
import { z } from 'zod';
import arAR from './locales/ar-ar/index.js';
import ar from './locales/ar/index.js';
import de from './locales/de/index.js';
import en from './locales/en/index.js';
import es from './locales/es/index.js';
@ -27,7 +27,7 @@ export type DefaultLocale = 'en';
export type I18nKey = NormalizeKeyPaths<typeof en.translation>;
export const builtInLanguages = [
'ar-AR',
'ar',
'de',
'en',
'es',
@ -74,7 +74,7 @@ export type Resource = Record<
};
const resource: Resource = {
'ar-AR': arAR,
ar,
de,
en,
es,

View file

@ -5,9 +5,9 @@ import type { LocalePhrase } from '../../types.js';
import errors from './errors/index.js';
import translation from './translation/index.js';
const ar_ar = {
const ar = {
translation,
errors,
} satisfies DeepPartial<LocalePhrase>;
export default Object.freeze(ar_ar);
export default Object.freeze(ar);

Some files were not shown because too many files have changed in this diff Show more