question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

formatjs not working from 2.0.0 onwards

See original GitHub issue

After 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kaisermanncommented, Nov 25, 2019

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 😬

0reactions
kaisermanncommented, Nov 30, 2019

@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/Migration

Let me know if your issue is fixed after migrating.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found