Skip to content
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

tag content relpacement & parameter usage #35

Open
angel1st opened this issue Mar 7, 2015 · 0 comments
Open

tag content relpacement & parameter usage #35

angel1st opened this issue Mar 7, 2015 · 0 comments

Comments

@angel1st
Copy link

angel1st commented Mar 7, 2015

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:

    String 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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant