Hacker News new | ask | show | jobs
by waibelp 3144 days ago
For all new projects I always use internationalization. Instead of writing something like

<button>Sign Up</button>

I simply write

<button>{{ 'Sign Up'|trans }}</button>

That way I don't need translation files (EN is default). If translation is not found the "key" is returned which is fine. Once the app is ready I call a command to create my language files and simply translate them.