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

json import: Exclude specific files #439

Open
MrGreen90 opened this issue Mar 10, 2023 · 1 comment
Open

json import: Exclude specific files #439

MrGreen90 opened this issue Mar 10, 2023 · 1 comment
Labels

Comments

@MrGreen90
Copy link

MrGreen90 commented Mar 10, 2023

Hi,

I use laravel-vue-i18n for my project, which provides translations in vue. This dynamically creates translations in lang/php_*.json.
The translation manager recognizes e.g. php_en as language.

I have provisionally added the following in the Manager.php:
importTranslations($replace = false, $base = null, $import_group = false) in the recognition of the .json files:
...

            if (strpos($jsonTranslationFile, 'php_') != false) {
                continue;
            }

This will skip files with 'php_' in the name. Would be great if this could be customized and made configurable via config.

image

image

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

@stale stale bot added the stale label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant