Skip to content

Commit

Permalink
Add language files
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Dec 16, 2024
1 parent dff52ff commit 3ecbe37
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data/user.global.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,16 @@ return [
'ttl' => 3600,
],
],
'translator' => [
'locale' => $local,
'translation_file_patterns' => [
//...
[
'type' => 'phparray',
'base_dir' => $basePath . '/module/User/language',
'pattern' => '%s.php',
],
//...
],
],
];
16 changes: 16 additions & 0 deletions language/en_US.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [
'add-account' => 'New account created',
'add-account-message' => 'New account created by your information in our platform !',
'update-account' => 'Update account',
'update-account-message' => 'Your account data updated!',
'delete-account' => 'Delete account',
'delete-accounts-message' => 'Your account deleted !',
'update-password' => 'Update account password',
'update-password-message' => 'Your account password updated by admin !',
'update-roles' => 'Update account roles',
'update-roles-message' => 'Your account roles updated by admin !',
'update-status' => 'Update account status',
'update-status-message' => 'Your account status updated by admin !',
];
16 changes: 16 additions & 0 deletions language/fa_IR.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [
'add-account' => 'ایجاد حساب کاربری جدید',
'add-account-message' => 'یک حساب کاربری جدید با اطلاعات شما در پلتفرم ما ایجاد شد!',
'update-account' => 'بروزرسانی حساب کاربری',
'update-account-message' => 'اطلاعات حساب کاربری شما بروزرسانی شد!',
'delete-account' => 'حذف حساب کاربری',
'delete-accounts-message' => 'حساب کاربری شما حذف شد!',
'update-password' => 'بروزرسانی رمز عبور حساب کاربری',
'update-password-message' => 'رمز عبور حساب کاربری شما توسط مدیر بروزرسانی شد!',
'update-roles' => 'بروزرسانی نقش‌های حساب کاربری',
'update-roles-message' => 'نقش‌های حساب کاربری شما توسط مدیر بروزرسانی شد!',
'update-status' => 'بروزرسانی وضعیت حساب کاربری',
'update-status-message' => 'وضعیت حساب کاربری شما توسط مدیر بروزرسانی شد!',
];

0 comments on commit 3ecbe37

Please sign in to comment.