EddyVerbruggen / nativescript-localize

Internationalization plugin for NativeScript using native capabilities of each platform
MIT License
79 stars 31 forks source link

How to localize coalesce texts #28

Closed arcovoltaico closed 6 years ago

arcovoltaico commented 6 years ago

Hi,

This is only working for register (and should work for login too): [text]="isLoggingIn ? 'login' : 'register' | L"

This will throw a template error: [text]="isLoggingIn ? 'login' | L : 'register' | L"

lfabreges commented 6 years ago

Looks like an angular issue, have you tried [text]="(isLoggingIn ? 'login' : 'register') | L"

arcovoltaico commented 6 years ago

Unfortunately still giving template parsing error. And there's no workaround, as sadly by duplicating the elements and using the coalesce in visibility attribute, it's always showing the elements ([visibility] it's not working along with [text] on buttons.

lfabreges commented 6 years ago

I'm closing this issue as this is not something I can fix with this plugin