claudetech / node-static-i18n

HTML static pages i18n tool
https://www.npmjs.com/package/static-i18n
MIT License
104 stars 21 forks source link

Locale groups won't work #23

Open alvarotrigo opened 6 years ago

alvarotrigo commented 6 years ago

Having the following YML file:

home:
  keywords: ffdasfa

text here: whatever

Only text here gets translated:

<span data-t>text here</span>
<span data-t>demo.keywords</span>

Generating:

<span>whatever</span>
<span>demo.keywords</span>
danhper commented 6 years ago

Could it simply be that

<span data-t>demo.keywords</span>

should be

<span data-t>home.keywords</span>

?

alvarotrigo commented 6 years ago

Sorry that's a typo on my question :) Even when using it properly, like. home.keywords, it still failing to me.