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

Translation won't work if string contains . #42

Open
erpardeepjain opened this issue Nov 28, 2019 · 2 comments
Open

Translation won't work if string contains . #42

erpardeepjain opened this issue Nov 28, 2019 · 2 comments

Comments

@erpardeepjain
Copy link

Support I have string

Explore and get a feel for the game before moving onto micro-level. You can play for 1 hour for just ₹50. And win lot more.

If I apply translation for this string it is not working, My observation is beacuse string contains . and translation is not working after ., Any comments or suggestion on this.

@martinandert
Copy link
Owner

The dot is used to separate translation keys. You can set a custom separator like this:

counterpart.setSeparator('*');

@erpardeepjain
Copy link
Author

erpardeepjain commented Nov 29, 2019

That's great, I was not aware about this. thanks.
Don't you think by default setSeparator value should not be . as many of the developer are not aware of this and many of the strings contains .. Just a suggestion.

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

No branches or pull requests

2 participants