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:
parent
6951e31578
commit
652898f978
102 changed files with 14 additions and 12 deletions
|
@ -3,4 +3,4 @@
|
|||
"@logto/phrases": minor
|
||||
---
|
||||
|
||||
add ar-AR language (credit to @zaaakher)
|
||||
add ar-SA language (credit to @zaaakher)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
|
@ -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,
|
||||
|
|
|
@ -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
Loading…
Add table
Reference in a new issue