angular-localization
angular-localization copied to clipboard
tag content relpacement & parameter usage
Hi there, I have currently two cases, where I need some assistance:
-
Tag content replacement: Lets suppose I have html snippet like below, which requires localization:
I have noticed that using i18n directive actually replaces the whole tag content, so in my case the <i> will be removed.
How can I solve that?
- Localization string parameter usage:
Lets suppose I have two localization strings e.g.
"My Product Name"and"beta version". So I want to use them:
- separately - this is OK and it works
- concatenating them - my first though was to create a third localization string e.g.
"{name} {version}"and then pass to this string both other strings. So how can I do that usingi18ndirective? I considering usage ofdata-i18ndirective, but it is not clear how I can pass todata-nameparameter another localized string. So how can I solve that case too?