i18n-v0.2.0
wxt-dev/wxti18n-v0.2.0Oct 4, 2024by github-actions[bot]
AI Summary
A breaking change release for the i18n package that removes an invalid options argument from the i18n.t method, requiring users to update their code.
Key Highlights
- Remove invalid options argument
- Migration required for users passing a final options argument
Breaking Changes
- Remove invalid options argument from i18n.t method. Users must update code to remove the third argument and handle the escapeLt option manually.
Full Release Notes
[compare changes](https://github.com/wxt-dev/wxt/compare/i18n-v0.1.1...i18n-v0.2.0)
### 🩹 Fixes
- ⚠️ Remove invalid options argument ([#1048](https://github.com/wxt-dev/wxt/pull/1048))
To upgrade, if you were passing a final `options` argument, remove it. If you used the third argument to escape `<` symbol... You'll need to do it yourself:
```diff
- i18n.t("someKey", ["sub1"], { escapeLt: true });
+ i18n.t("someKey", ["sub1"]).replaceAll("<", "<");
```
### ❤️ Contributors
- Aaron ([@aklinker1](http://github.com/aklinker1))