angular-localization icon indicating copy to clipboard operation
angular-localization copied to clipboard

tag content relpacement & parameter usage

Open angel1st opened this issue 10 years ago • 0 comments

Hi there, I have currently two cases, where I need some assistance:

  1. 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?

  1. 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 using i18n directive? I considering usage of data-i18n directive, but it is not clear how I can pass to data-name parameter another localized string. So how can I solve that case too?

angel1st avatar Mar 07 '15 14:03 angel1st