You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Ruben,
Do you have plan to support bundle or namespace on translating?
You know there are maybe have multiple same string but have different translated string in big project.
One solution for this case is using bundle name or namespace to get suitable string resource.
For example:
for directive
<span translate="mybundle" ..>
for filter
{{ msg | translate:"mybundle"}}
Thanks,
The text was updated successfully, but these errors were encountered:
Have a look at translation contexts, those solve the problem you're
mentioning.
On Nov 2, 2015 05:53, "bruceman" [email protected] wrote:
Hi Ruben,
Do you have plan to support bundle or namespace on translating?
You know there are maybe have multiple same string but have different
translated string in big project.
One solution for this case is using bundle name or namespace to get
suitable string resource.
For example:
for directive
for filter
{{ msg | translate:"mybundle"}}
Thanks,
—
Reply to this email directly or view it on GitHub #240.
Thanks Ruben,
But as i understood, the context is just for accessing nested properties. i can not find a way to isolate the translated string from multiple i18n files.
i can not find a way to isolate the translated string from multiple i18n files.
You shouldn't the whole point of gettext is that same source strings can be combined. In the rare event of clashes (noun vs. verb etc), contexts are what helps you.
As mentioned in #241: we probably won't add this, it makes things needlessly complex. More details in #115 and linked issues.
Hi Ruben,
Do you have plan to support bundle or namespace on translating?
You know there are maybe have multiple same string but have different translated string in big project.
One solution for this case is using bundle name or namespace to get suitable string resource.
For example:
<span translate="mybundle" ..>
{{ msg | translate:"mybundle"}}
Thanks,
The text was updated successfully, but these errors were encountered: