@nextjscms/translations 0.8.10 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +25 -25
- package/dist/languages/ar.d.ts +25 -3
- package/dist/languages/ar.d.ts.map +1 -1
- package/dist/languages/ar.js +25 -3
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 nextjs-cms
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 nextjs-cms
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# @nextjscms/translations
|
|
2
|
-
|
|
3
|
-
Translation dictionaries for the nextjs-cms framework. Provides localized strings for the CMS admin interface.
|
|
4
|
-
|
|
5
|
-
## Supported Languages
|
|
6
|
-
|
|
7
|
-
- English (`en`)
|
|
8
|
-
- Arabic (`ar`)
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
pnpm add @nextjscms/translations
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import en from '@nextjscms/translations/dictionaries/en'
|
|
20
|
-
import ar from '@nextjscms/translations/dictionaries/ar'
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
|
|
25
|
-
MIT License - see [LICENSE](./LICENSE) for details.
|
|
1
|
+
# @nextjscms/translations
|
|
2
|
+
|
|
3
|
+
Translation dictionaries for the nextjs-cms framework. Provides localized strings for the CMS admin interface.
|
|
4
|
+
|
|
5
|
+
## Supported Languages
|
|
6
|
+
|
|
7
|
+
- English (`en`)
|
|
8
|
+
- Arabic (`ar`)
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pnpm add @nextjscms/translations
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import en from '@nextjscms/translations/dictionaries/en'
|
|
20
|
+
import ar from '@nextjscms/translations/dictionaries/ar'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT License - see [LICENSE](./LICENSE) for details.
|
package/dist/languages/ar.d.ts
CHANGED
|
@@ -195,6 +195,22 @@ declare const _default: {
|
|
|
195
195
|
readonly catDeleteWarning: "انتبه! جميع المواد المتعلقة بهذا القسم سيتم حذفها أيضاً";
|
|
196
196
|
readonly catDeleteWarningSubtitle: "يرجى عدم المتابعة إذا كنت لا تريد أن تفقد المواد المتعلقة بهذا القسم";
|
|
197
197
|
readonly cancel: "إلغاء";
|
|
198
|
+
readonly unsavedChangesConfirm: "لديك تغييرات غير محفوظة. هل أنت متأكد أنك تريد مغادرة هذه الصفحة؟";
|
|
199
|
+
readonly deleteLocaleTranslation: "حذف هذه الترجمة";
|
|
200
|
+
readonly deleteLocaleTranslationText: "هل أنت متأكد أنك تريد حذف هذه الترجمة؟ لا يمكن التراجع عن هذا الإجراء.";
|
|
201
|
+
readonly localesHeading: "اللغات";
|
|
202
|
+
readonly baseLocaleBadge: "(الأساسية)";
|
|
203
|
+
readonly editingContentTranslation: "تعديل الترجمة: {locale}. تُعرض حقول الترجمة فقط.";
|
|
204
|
+
readonly localizationNotEnabledForSection: "التعدد اللغوي غير مفعّل لهذا القسم";
|
|
205
|
+
readonly noLocalizedFields: "لا توجد حقول للترجمة في هذا القسم.";
|
|
206
|
+
readonly sectionHasNoLocalizedFields: "القسم \"{section}\" لا يحتوي على حقول للترجمة. أضف localized: true إلى حقل واحد على الأقل في تعريف القسم لتفعيل الترجمات.";
|
|
207
|
+
readonly noLocalizedFieldsHint: "لتفعيل الترجمات لـ \"{section}\"، عدّل تعريف القسم في {file} داخل مجلد الأقسام وأضف localized: true إلى الحقول التي تريد ترجمتها.";
|
|
208
|
+
readonly invalidLocale: "اللغة \"{locale}\" غير صالحة. يجب أن تكون واحدة من: {locales}";
|
|
209
|
+
readonly cannotDeleteBaseLocaleTranslation: "لا يمكن حذف ترجمة اللغة الأساسية";
|
|
210
|
+
readonly localesTableDoesNotExist: "جدول الترجمات غير موجود";
|
|
211
|
+
readonly deleteLocaleTranslationFailed: "فشل حذف الترجمة: {detail}";
|
|
212
|
+
readonly unknownErrorOccurred: "حدث خطأ غير معروف";
|
|
213
|
+
readonly localeTranslationDeleted: "تم حذف الترجمة بنجاح";
|
|
198
214
|
readonly itemCreatedSuccessfully: "تم إنشاء العنصر بنجاح";
|
|
199
215
|
readonly itemUpdatedSuccessfully: "تم تحديث العنصر بنجاح";
|
|
200
216
|
readonly sectionUpdatedSuccessfully: "تم تحديث المعلومات بنجاح";
|
|
@@ -276,6 +292,8 @@ declare const _default: {
|
|
|
276
292
|
readonly no: "لا";
|
|
277
293
|
readonly videoDeletedSuccessfully: "تم حذف الفيديو بنجاح";
|
|
278
294
|
readonly photoDeletedSuccessfully: "تم حذف الصورة بنجاح";
|
|
295
|
+
readonly photoMarkedForDeletion: "سيتم حذف الصورة عند الحفظ.";
|
|
296
|
+
readonly undo: "تراجع";
|
|
279
297
|
readonly selectFile: "اختر ملف";
|
|
280
298
|
readonly mandatory: "إلزامي";
|
|
281
299
|
readonly imageDimensionsMustBe: "أبعاد الصورة يجب أن تكون";
|
|
@@ -334,7 +352,7 @@ declare const _default: {
|
|
|
334
352
|
readonly emailAccountsList: "قائمة حسابات البريد الإلكتروني";
|
|
335
353
|
readonly theme: "المظهر";
|
|
336
354
|
readonly noAccessToSection: "لا يوجد صلاحية للوصول لهذا القسم";
|
|
337
|
-
readonly
|
|
355
|
+
readonly languageNotSupported: "هذه اللغة غير مدعومة";
|
|
338
356
|
readonly language: "اللغة";
|
|
339
357
|
readonly addNewCar: "إضافة سيارة جديدة";
|
|
340
358
|
readonly createCarListing: "إنشاء إعلان سيارة جديد";
|
|
@@ -403,7 +421,7 @@ declare const _default: {
|
|
|
403
421
|
readonly parentId: "معرف الأب";
|
|
404
422
|
readonly selectFieldConfigError: "حقل الاختيار يتطلب إما db أو section أو مصفوفة options";
|
|
405
423
|
readonly tableIdentifierLabelRequired: "الجدول والمعرف والتسمية مطلوبة";
|
|
406
|
-
readonly
|
|
424
|
+
readonly i18nMustHaveAtLeastOneLanguage: "يجب أن يحتوي i18n.supportedLanguages على لغة واحدة على الأقل";
|
|
407
425
|
readonly fieldMinValueError: "{field} يجب أن يكون {min} أو أكثر";
|
|
408
426
|
readonly fieldMaxValueError: "{field} يجب أن يكون {max} أو أقل";
|
|
409
427
|
readonly fieldMinMaxMismatch: "{field} الحد الأدنى أكبر من الحد الأقصى";
|
|
@@ -441,10 +459,14 @@ declare const _default: {
|
|
|
441
459
|
readonly profileImage: "صورة الملف الشخصي";
|
|
442
460
|
readonly logo: "الشعار";
|
|
443
461
|
readonly newImage: "صورة جديدة";
|
|
444
|
-
readonly autoGeneratedFromLinkedField: "
|
|
462
|
+
readonly autoGeneratedFromLinkedField: "يتم إنشاؤه تلقائياً من الحقل المرتبط";
|
|
445
463
|
readonly clear: "مسح";
|
|
446
464
|
readonly close: "إغلاق";
|
|
447
465
|
readonly clearAllSelectedOptions: "مسح جميع الخيارات المحددة ({count})";
|
|
466
|
+
readonly galleryPhoto: "صورة المعرض";
|
|
467
|
+
readonly parentItemNotFound: "العنصر الأب غير موجود";
|
|
468
|
+
readonly preSubmitHookFailed: "فشل التحقق المسبق";
|
|
469
|
+
readonly failedToBuildLocaleSqlQuery: "فشل بناء SQL للترجمة";
|
|
448
470
|
};
|
|
449
471
|
export default _default;
|
|
450
472
|
//# sourceMappingURL=ar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../src/languages/ar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../src/languages/ar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsfU"}
|
package/dist/languages/ar.js
CHANGED
|
@@ -195,6 +195,22 @@ export default {
|
|
|
195
195
|
catDeleteWarning: 'انتبه! جميع المواد المتعلقة بهذا القسم سيتم حذفها أيضاً',
|
|
196
196
|
catDeleteWarningSubtitle: 'يرجى عدم المتابعة إذا كنت لا تريد أن تفقد المواد المتعلقة بهذا القسم',
|
|
197
197
|
cancel: 'إلغاء',
|
|
198
|
+
unsavedChangesConfirm: 'لديك تغييرات غير محفوظة. هل أنت متأكد أنك تريد مغادرة هذه الصفحة؟',
|
|
199
|
+
deleteLocaleTranslation: 'حذف هذه الترجمة',
|
|
200
|
+
deleteLocaleTranslationText: 'هل أنت متأكد أنك تريد حذف هذه الترجمة؟ لا يمكن التراجع عن هذا الإجراء.',
|
|
201
|
+
localesHeading: 'اللغات',
|
|
202
|
+
baseLocaleBadge: '(الأساسية)',
|
|
203
|
+
editingContentTranslation: 'تعديل الترجمة: {locale}. تُعرض حقول الترجمة فقط.',
|
|
204
|
+
localizationNotEnabledForSection: 'التعدد اللغوي غير مفعّل لهذا القسم',
|
|
205
|
+
noLocalizedFields: 'لا توجد حقول للترجمة في هذا القسم.',
|
|
206
|
+
sectionHasNoLocalizedFields: 'القسم "{section}" لا يحتوي على حقول للترجمة. أضف localized: true إلى حقل واحد على الأقل في تعريف القسم لتفعيل الترجمات.',
|
|
207
|
+
noLocalizedFieldsHint: 'لتفعيل الترجمات لـ "{section}"، عدّل تعريف القسم في {file} داخل مجلد الأقسام وأضف localized: true إلى الحقول التي تريد ترجمتها.',
|
|
208
|
+
invalidLocale: 'اللغة "{locale}" غير صالحة. يجب أن تكون واحدة من: {locales}',
|
|
209
|
+
cannotDeleteBaseLocaleTranslation: 'لا يمكن حذف ترجمة اللغة الأساسية',
|
|
210
|
+
localesTableDoesNotExist: 'جدول الترجمات غير موجود',
|
|
211
|
+
deleteLocaleTranslationFailed: 'فشل حذف الترجمة: {detail}',
|
|
212
|
+
unknownErrorOccurred: 'حدث خطأ غير معروف',
|
|
213
|
+
localeTranslationDeleted: 'تم حذف الترجمة بنجاح',
|
|
198
214
|
itemCreatedSuccessfully: 'تم إنشاء العنصر بنجاح',
|
|
199
215
|
itemUpdatedSuccessfully: 'تم تحديث العنصر بنجاح',
|
|
200
216
|
sectionUpdatedSuccessfully: 'تم تحديث المعلومات بنجاح',
|
|
@@ -276,6 +292,8 @@ export default {
|
|
|
276
292
|
no: 'لا',
|
|
277
293
|
videoDeletedSuccessfully: 'تم حذف الفيديو بنجاح',
|
|
278
294
|
photoDeletedSuccessfully: 'تم حذف الصورة بنجاح',
|
|
295
|
+
photoMarkedForDeletion: 'سيتم حذف الصورة عند الحفظ.',
|
|
296
|
+
undo: 'تراجع',
|
|
279
297
|
selectFile: 'اختر ملف',
|
|
280
298
|
mandatory: 'إلزامي',
|
|
281
299
|
imageDimensionsMustBe: 'أبعاد الصورة يجب أن تكون',
|
|
@@ -334,7 +352,7 @@ export default {
|
|
|
334
352
|
emailAccountsList: 'قائمة حسابات البريد الإلكتروني',
|
|
335
353
|
theme: 'المظهر',
|
|
336
354
|
noAccessToSection: 'لا يوجد صلاحية للوصول لهذا القسم',
|
|
337
|
-
|
|
355
|
+
languageNotSupported: 'هذه اللغة غير مدعومة',
|
|
338
356
|
language: 'اللغة',
|
|
339
357
|
addNewCar: 'إضافة سيارة جديدة',
|
|
340
358
|
createCarListing: 'إنشاء إعلان سيارة جديد',
|
|
@@ -408,7 +426,7 @@ export default {
|
|
|
408
426
|
// Config Errors
|
|
409
427
|
selectFieldConfigError: 'حقل الاختيار يتطلب إما db أو section أو مصفوفة options',
|
|
410
428
|
tableIdentifierLabelRequired: 'الجدول والمعرف والتسمية مطلوبة',
|
|
411
|
-
|
|
429
|
+
i18nMustHaveAtLeastOneLanguage: 'يجب أن يحتوي i18n.supportedLanguages على لغة واحدة على الأقل',
|
|
412
430
|
// Field Validation - Min/Max
|
|
413
431
|
fieldMinValueError: '{field} يجب أن يكون {min} أو أكثر',
|
|
414
432
|
fieldMaxValueError: '{field} يجب أن يكون {max} أو أقل',
|
|
@@ -455,8 +473,12 @@ export default {
|
|
|
455
473
|
profileImage: 'صورة الملف الشخصي',
|
|
456
474
|
logo: 'الشعار',
|
|
457
475
|
newImage: 'صورة جديدة',
|
|
458
|
-
autoGeneratedFromLinkedField: '
|
|
476
|
+
autoGeneratedFromLinkedField: 'يتم إنشاؤه تلقائياً من الحقل المرتبط',
|
|
459
477
|
clear: 'مسح',
|
|
460
478
|
close: 'إغلاق',
|
|
461
479
|
clearAllSelectedOptions: 'مسح جميع الخيارات المحددة ({count})',
|
|
480
|
+
galleryPhoto: 'صورة المعرض',
|
|
481
|
+
parentItemNotFound: 'العنصر الأب غير موجود',
|
|
482
|
+
preSubmitHookFailed: 'فشل التحقق المسبق',
|
|
483
|
+
failedToBuildLocaleSqlQuery: 'فشل بناء SQL للترجمة',
|
|
462
484
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextjscms/translations",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"eslint": "^9.12.0",
|
|
20
20
|
"prettier": "^3.3.3",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@lzcms/tsconfig": "0.1.0",
|
|
23
22
|
"@lzcms/eslint-config": "0.3.0",
|
|
24
|
-
"@lzcms/prettier-config": "0.1.0"
|
|
23
|
+
"@lzcms/prettier-config": "0.1.0",
|
|
24
|
+
"@lzcms/tsconfig": "0.1.0"
|
|
25
25
|
},
|
|
26
26
|
"prettier": "@lzcms/prettier-config",
|
|
27
27
|
"scripts": {
|