Issue when using full stop in translate service value
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
this.translocoService.translate('An email was sent to your email address. Please check your mail box.')
Extracted value in json file:
“'An email was sent to your email address”: { " Please check your mail box": { “'”: “” } }
When ever I try to translate a string with full stop in it, the service thinks it is an object.
Expected behavior
Extracted value in json value should be :
“'An email was sent to your email address. Please check your mail box.”: “”
The service should parse it as a full sentence instead of an object.
Environment
Angular version: 9.1.11
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 14.3.0
- Platform: Mac
Others:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
safely use translate.instant() · Issue #517 - GitHub
is theire a way to load translations when application starts so that we can safely use translate.instant()
Read more >Using HTML's translate attribute - W3C
If a page has no translate attribute, a translation system or translator should assume that all the text is to be translated. The...
Read more >What's Included in Marketing Translation Services Costs - ATL
What's included in marketing translation services costs is not just the rate for one service. Know what you should expect.
Read more >Checks and fixups — Weblate 4.15.1 documentation
Checks that full stops are replicated between both source and translation. The presence of full stops is checked for various languages where they...
Read more >How to translate your Angular app with ngx-translate
1. Add ngx-translate to your Angular application 2. Set up the TranslateService in your app.module.ts 3. Create your main language translation file (in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@zzakir, of course, you can… you can translate a sentence like that:
and then you can translate like this:
Ah alright. Now I get it. Thank you very much for your help.