-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] get all message from a category #3
Comments
This issue is the same as #95 |
That is hardly possible because choosing a message may consider parameters. That is true, for example, for gettext plurals. |
when we sent all the messages into client, therefore that parameters must be managed by the client(js). |
We can't get the message not knowing parameters when using gettext. |
@samdark you right! |
You can get the array directly, I guess. Just via |
yes. seems this feature is not supported by yii2 because the yii2 uses thanks. |
Yii 2 and Yii 3 can use gettext or PHP. The issue is that the interface is common so you can use one implementation or another without changing actual code. Therefore, the interface can not contain methods that can't work in one of the implementations. Anyway, that seems to be specific task dependent on message storage format. Can't be implemented in a generic way. |
Hi
i think this feature is need for big project that using internationalization(I18N).
but where is it used?
this is used in interaction between server I18N and client project like javascript.
i prepared a sample example.
Yii messages file in
TreeView
categoryin javascript
in above js example i use
null
parameter fort
method, becausenull
means get all message fromTreeView
category.also see
how i can get a category message in yii ?
The text was updated successfully, but these errors were encountered: