lokalise/i18n-ally

Angular native i18n

antfu opened this issue ยท 6 comments

antfu commented

What framework do you want to have? Please provide links of its i18n solution/package.
Angular

https://angular.io/guide/i18n

Please provide some overall screenshots about how the i18n usage would be like

<h1 i18n="site header|An introduction header for this sample@@introductionHeader">Hello i18n!</h1>

Please provide a minimal starter project
Already included in the examples
https://github.com/antfu/i18n-ally/tree/i18n-ally/examples/angular

Additional context
Things to be done to support angular

Vote

This extension is supporting ngx-translate now. I am not an Angular user and I am not sure what's the community favor.

If you would like to see this get supported, please hit ๐Ÿ‘ to vote on this. When it's hit 15 ๐Ÿ‘ I would start to consider implementing this. Thanks!

antfu commented

Hey guys, any good XLFF parser in js recommended?

Hey guys, any good XLFF parser in js recommended?

How about https://github.com/locize/xliff?

pkurz commented

Any update on this?

Yeah, it's very hard to implement the support of the native Angular localization approach which involves attributes instead of translation functions. Let's close the issues as it's already over two years old.

I mean it has 15 upvotes ;) @antfu

Just returning to the past and realizing that angular i18n has absolutely ZERO tooling , and thirdparty tools like ngx-translate are everywhere listed as "deprecated", and "outdated", "unmaintained" - but do their job just fine.

If you start a new angular project: please just use ngx translate and dont look back.