andywer / andywer/laravel-js-localization

wrong behaviour when using replacements with same starting name

Open
#70 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
143
Forks
53
PR merge metrics
No merged PRs in 30d

Description

I have a translation message like this:
`'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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.