i18n helpers
See original GitHub issueHi,
I didn’t got it right how to make custom helpers to use i18n without using handlebars direct
im getting this error when i start my application.
exphbs.registerHelper('__', function () {
^
TypeError: undefined is not a function
Otherwise the templates are rendering just fine, so im must be doing almost everything ok… 😃
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
i18n-helpers - npm
A set of helpers for performing i18n translations. Latest version: 0.1.2, last published: 5 years ago. Start using i18n-helpers in your ...
Read more >tenfold/i18n-helpers: Helpers for preparing i18n translations
This module is useful when searching for missing keys or when one wants to provide placeholders for missing keys. It also finds any...
Read more >Rails Internationalization (I18n) API - Ruby on Rails Guides
Every helper method dependent on url_for (e.g. helpers for named routes like root_path or root_url , resource routes like books_path or books_url ,...
Read more >Localization Helpers - Lyften
Localization Helpers is a set of tools to help you manage translations with in your Laravel application. It's parses all translations in application ......
Read more >Introduction - laminas-i18n - Laminas Docs
Abstract Translator Helper. The AbstractTranslatorHelper view helper is used as a base abstract class for any helpers that need to translate content. It ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Figured it out! The solution simply consists in using the
data.root.locale
from the last argument of the helper.using
data.root.locale
worked for me too. I however am only using it whenthis.locale
is not set for optimization.