We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a translation message like this: 'items_from_to' => ':from - :to of :total'
'items_from_to' => ':from - :to of :total'
When translating...
Lang.get('items_from_to', { from: 1, to: 10, total: 34 })
I see: 1 - 10 of 10tal
instead of 1 - 10 of 100
The text was updated successfully, but these errors were encountered:
A solution would be to use \b in the regex: new RegExp(':' + replacementName + '\\b', 'g'),
new RegExp(':' + replacementName + '\\b', 'g'),
Sorry, something went wrong.
Laravel sorts by length before doing the replacements - https://github.com/laravel/framework/blob/v7.0.0/src/Illuminate/Translation/Translator.php#L217
That's even better
No branches or pull requests
I have a translation message like this:
'items_from_to' => ':from - :to of :total'
When translating...
I see:
1 - 10 of 10tal
instead of
1 - 10 of 100
The text was updated successfully, but these errors were encountered: