Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] implement command check lang folder, and show missing files an… #1496

Merged
merged 1 commit into from
Dec 17, 2022
Merged

[feat] implement command check lang folder, and show missing files an… #1496

merged 1 commit into from
Dec 17, 2022

Conversation

alissn
Copy link
Contributor

@alissn alissn commented Nov 6, 2022

Hi,
This PR introduces a new module:lang command that displays missing files/keys of each language.

Like other comments if don't pass module name Arguments check all modules of project.

For Example : this my base module language

➜  lang git:(master) ✗ tree
.
├── ar
│   ├── action.php
│   └── test4.php
├── en
│   ├── action.php
│   ├── constant.php
│   ├── footer.php
│   ├── form.php
│   ├── general.php
│   ├── header.php
│   ├── sidebar.php
│   ├── social.php
│   ├── table.php
│   └── test3.php
└── fa
    ├── action.php
    ├── constant.php
    ├── footer.php
    ├── form.php
    ├── general.php
    ├── header.php
    ├── sidebar.php
    ├── social.php
    ├── table.php
    ├── test1.php
    └── test2.php

3 directories, 23 files

after run command get this result :

Screen Shot 1401-07-03 at 01 23 35

also this command showing missing keys of each files 😎
In the example above:
content of file ar/action.php is:

<?php
return [

    ];

and content of file en/action.php is:

<?php

return [
    'action' => 'Action',

    'save'         => 'Save',
    'update'       => 'Update',
    'add'          => 'Add',
    'delete'       => 'Delete',
    'cancel'       => 'Cancel',
    'wait'         => 'Please wait...',
    'apply'        => 'Apply',
    'edit'         => 'Edit',
    'change'       => 'Change',
    'view'         => 'View',
    'show_on_site' => 'Show on site',
    'browse_file'  => 'Browse File',
    'browse_image' => 'Browse Image',
    'browse_video' => 'Browse Video',
    'choose'       => 'Choose',

    'activity_log' => 'Activity Log',
];

and content of file fa/action.php is:

<?php

return [
    'action' => 'عملیات',

    'save'         => 'ذخیره',
    'update'       => 'به‌روزرسانی',
    'add'          => 'افزودن',
    'delete'       => 'حذف',
    'cancel'       => 'لغو',
    'back'         => 'بازگشت',
    'close'        => 'بستن',
    'wait'         => 'لطفا منتظر بمانید...',
    'apply'        => 'اعمال',
    'edit'         => 'ویرایش',
    'change'       => 'تغییر',
    'view'         => 'مشاهده',
    'show_on_site' => 'نمایش در سایت',

    'activity_log' => 'تاریخچه فعالیت',
];

after run command get this result :
Screen Shot 1401-07-03 at 01 29 59

@stale stale bot added the stale label Nov 22, 2022
@alissn
Copy link
Contributor Author

alissn commented Nov 23, 2022

hi @dcblogdev

please check this PR.

@stale stale bot removed the stale label Nov 23, 2022
@stale stale bot added the stale label Dec 8, 2022
@alissn
Copy link
Contributor Author

alissn commented Dec 9, 2022

.

@stale stale bot closed this Dec 16, 2022
Repository owner deleted a comment from stale bot Dec 17, 2022
Repository owner deleted a comment from stale bot Dec 17, 2022
@dcblogdev dcblogdev reopened this Dec 17, 2022
@stale stale bot removed the stale label Dec 17, 2022
@dcblogdev dcblogdev merged commit 380ddcb into nWidart:master Dec 17, 2022
@dcblogdev
Copy link
Collaborator

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants