From c4e3efa6c0f772f2eca5142241856710f9262de5 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Wed, 18 Sep 2024 14:16:18 +0200 Subject: [PATCH] fix: Add date-fns locale, include to languages --- client/src/locales/ar-YE/core.js | 7 +++++-- client/src/locales/ar-YE/index.js | 5 +---- client/src/locales/index.js | 2 ++ server/api/models/User.js | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/client/src/locales/ar-YE/core.js b/client/src/locales/ar-YE/core.js index 73042d53..4dfea111 100644 --- a/client/src/locales/ar-YE/core.js +++ b/client/src/locales/ar-YE/core.js @@ -1,4 +1,8 @@ +import dateFns from 'date-fns/locale/ar'; + export default { + dateFns, + format: { date: 'M/d/yyyy', time: 'p', @@ -153,8 +157,7 @@ export default { subscribeToMyOwnCardsByDefault: 'الاشتراك في بطاقاتي الخاصة إفتراضياً', taskActions_title: 'إجراءات المهمة', tasks: 'المهام', - thereIsNoPreviewAvailableForThisAttachment: - 'لا يوجد معاينة متاحة لهذا المرفق.', + thereIsNoPreviewAvailableForThisAttachment: 'لا يوجد معاينة متاحة لهذا المرفق.', time: 'الوقت', title: 'العنوان', userActions_title: 'إجراءات المستخدم', diff --git a/client/src/locales/ar-YE/index.js b/client/src/locales/ar-YE/index.js index e547c40b..d8a057fd 100644 --- a/client/src/locales/ar-YE/index.js +++ b/client/src/locales/ar-YE/index.js @@ -1,11 +1,8 @@ -import merge from 'lodash/merge'; - import login from './login'; -import core from './core'; export default { language: 'ar-YE', country: 'ye', name: 'العربية', - embeddedLocale: merge(login, core), + embeddedLocale: login, }; diff --git a/client/src/locales/index.js b/client/src/locales/index.js index 32b17327..3793b24a 100644 --- a/client/src/locales/index.js +++ b/client/src/locales/index.js @@ -1,3 +1,4 @@ +import arYE from './ar-YE'; import bgBG from './bg-BG'; import csCZ from './cs-CZ'; import daDK from './da-DK'; @@ -25,6 +26,7 @@ import zhCN from './zh-CN'; import zhTW from './zh-TW'; const locales = [ + arYE, bgBG, csCZ, daDK, diff --git a/server/api/models/User.js b/server/api/models/User.js index a4216c8a..2c17bea7 100755 --- a/server/api/models/User.js +++ b/server/api/models/User.js @@ -6,6 +6,7 @@ */ const LANGUAGES = [ + 'ar-YE', 'bg-BG', 'cs-CZ', 'da-DK',