Comments (1)
Thank you for your feedback!
In this major version, $t
function to return anything other than a string (object or array). Because I thought it should be a translation-only obligation.
$t
function name derives from translation
.
In generally, the API like $t
function should be a single feature-only offering,
IMO, I think it's bat practice that putting other features into the API.
There's breaking change of return value of $t
in this major version, but you're right, we should have an alternative.
Perhaps, we'll extend getMessages
or provide a new function $tm
(translation messages).
from vue-i18n-next.
Related Issues (20)
- i want to make same shortcut
- tm function causes type errors
- mutil call for useI18n not work HOT 1
- Component Interpolation doesn't work with lists HOT 2
- Support `Intl.DateTimeFormat().formatRange()`
- fallback locale deep key using `tm` throw error
- Inconsistent behaviour with $te and $t regarding nested message notation HOT 2
- Translation issue with using vue-i18n.runtime.esm-bundler.js (CSP forced) HOT 2
- No known conditions for "./lib/locale/lang/zh-cn" specifier in "element-plus" package HOT 4
- Error Thrown When Keyword "link" Used As I18n Key
- How to use with option api when legacy is false
- mergeLocaleMessage in petite 18n broken after 9.6.0 - converts to nested object by itself
- Linked messages cannot support non-nested syntax HOT 1
- Documentation does not show usage within `<scripts>` - How to use `$t`, `$tc`, `$d`, `$n`? HOT 6
- `te` returns invalid value when the given value (or "branch") is an object HOT 8
- Usage of `n()` and `$n()` with `undefined` should not throw errors HOT 3
- add possible errors on API docs HOT 3
- Modifiers for interpolated values
- How to use named interpolation in html HOT 1
- [v9.10.0] `@intlify/message-compiler` publishing missing TypeScript reference HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-i18n-next.