formatjs not working from 2.0.0 onwards
See original GitHub issueAfter updating from 1.1.2-beta to 2.0.0 or later, formatted translations are no longer being formatted.
For example:
{ "page_indicator": "Page {currentPage} of {totalPages}", }
and calling;
{$_('page_indicator', { currentPage: 1, totalPages: 10 })}
will end up in displaying:
Page {currentPage} of {totalPages}
instead of replacing the variables.
Downgrading back to 1.1.2-beta fixes makes the formatting functional again.
Has this feature been removed?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
select type message dont work · Issue #2860 - GitHub
Currently I use react-intl 5.12.1 and I have no problems. ... to the version change of @formatjs/icu-messageformat-parser (1.2.1 => 2.0.0).
Read more >Message Extraction | Format.JS
The default format generated from @formatjs/cli might not work with the specific TMS/vendor you're working with. You can specify a custom formatter with ......
Read more >Docs - Moment.js
The current specification defines parsing a variation of ISO 8601 strings, where date-only forms (like "2020-09-14" ) are parsed as UTC, instead of...
Read more >Copyright notice 版权声明 - Huawei Cloud
@formatjs/intl-utils:2.3.0. @mdn/browser-compat-data:3.3.14. @nodelib/fs.scandir:2.1.5. @nodelib/fs.stat:2.0.5. @nodelib/fs.walk:1.2.8.
Read more >Games / harlowe · GitLab - Heptapod
Any further steps from 200 onwards will not be recorded. ... column, heading, and horizontal rule markup to not work in the first...
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 FreeTop 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
Top GitHub Comments
My bad for not making a v1 to v2 docs in the wiki! Will do soon. You can use the previous version for now. I’ll probably deprecate the current v2 until I fix some bugs in the coming week 😬
@wootcake I just released
v2.1.0
in case you want to start testing with it. I’ve also updated the docs and made a quick migration guide from v1 to v2: https://github.com/kaisermann/svelte-i18n/wiki/MigrationLet me know if your issue is fixed after migrating.