Hi Prasanna,
We have implemented server-side JS function for i18n [1]. One can use it as
follows.
i18n("message.key");
i18n("message.key", param1, param2, ...);
This feature is in the current master, will do a milestone release with
this soon.
[1]
Hi All,
Kind reminder on this. What should we follow to do internationalization in
javascript code ?
@UUF Team: Shall we come to a final decision regarding this.
Thanks
*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware
*cell: +94 718 11 27
Hi All,
Interesting article about similar requirement[1]
[1] http://nerds.airbnb.com/slides-and-video-from-spike-brehms-tech-talk/
Cheers,
Ruwan
On Fri, Mar 24, 2017 at 10:55 PM, Prasanna Dangalla
wrote:
>
>
> On Fri, Mar 24, 2017 at 6:34 PM Manuranga Perera
Hi Nuwan,
In SPA, also I assume we have a limited(and finite) set of localized
strings. I think no need to pass entire i18n file(which may be huge) to
client side so that the localization is done at client side. Further one
can argue that transferring the entire i18n file to the client side
On Fri, Mar 24, 2017 at 2:32 PM, Ruwan Abeykoon wrote:
> Hi Nuwan,
> In SPA, also I assume we have a limited(and finite) set of localized
> strings. I think no need to pass entire i18n file(which may be huge) to
> client side so that the localization is done at client side.
On Fri, Mar 24, 2017 at 6:34 PM Manuranga Perera wrote:
> We need to bring whole i18n (combined all lang files) to the UI and cache
> it.
>
Bringing the whole thing will be an expensive operation in the fist time
before caching them, IMO we should load page wise and then cache
>
> Bringing the whole thing will be an expensive operation in the fist time
> before caching them, IMO we should load page wise and then cache them. WDYT
> ?
>
Bringing it one time is always faster, and much simpler to debug ect.
Hi all,
On Fri, Mar 24, 2017 at 4:13 PM, Chanaka Jayasena wrote:
> I think we can do the same we did with jaggery base APIM UI using i18next
> library. http://i18next.com/
>
+1 to use i18next[1],
We could use the *i18next-xhr-backend* with the support from UUF to
provide
We need to bring whole i18n (combined all lang files) to the UI and cache
it.
On Fri, Mar 24, 2017 at 8:40 AM, Nuwandi Wickramasinghe
wrote:
>
>
> On Fri, Mar 24, 2017 at 1:49 PM, Nuwan Dias wrote:
>
>>
>>
>> On Fri, Mar 24, 2017 at 1:23 PM, Ruwan Abeykoon
Ya that is needed but, that is too much work for the app dev, for the
template usecase. So we need a convenient way.
Ideally if you have {{i18n "key"}} hbs, it should automatically work same
as in backbend UUF. This means we have to write a js helper, and inside
that we can use the above API you
There are some usecase where web app developers need client-side i18n.
IMO, we can give this capability through UUF Client library.
UUFClient.i18n("message.key"); // value of the Accept-Language header
will be used to compute locale
UUFClient.i18n("message.key", parameters[]);
I think we can do the same we did with jaggery base APIM UI using i18next
library. http://i18next.com/
thanks,
Chanaka
On Fri, Mar 24, 2017 at 3:36 AM, Nuwan Dias wrote:
>
>
> On Fri, Mar 24, 2017 at 2:32 PM, Ruwan Abeykoon wrote:
>
>> Hi Nuwan,
>> In SPA,
On Fri, Mar 24, 2017 at 1:49 PM, Nuwan Dias wrote:
>
>
> On Fri, Mar 24, 2017 at 1:23 PM, Ruwan Abeykoon wrote:
>
>> Hi All,
>> What if,
>> i18n is handled on the server side only, and encode the relevant
>> localized strings into HTML by the server-side (js or
On Fri, Mar 24, 2017 at 1:23 PM, Ruwan Abeykoon wrote:
> Hi All,
> What if,
> i18n is handled on the server side only, and encode the relevant localized
> strings into HTML by the server-side (js or hbs).
> Client side libraries only read the string values already in the client
Hi All,
What if,
i18n is handled on the server side only, and encode the relevant localized
strings into HTML by the server-side (js or hbs).
Client side libraries only read the string values already in the client
locale within HTML DOM itself and just render the data. No client-side i18n.
What
API of somekind(Rest or a http service endpoint), That we have to think
about, that exposes a functionality to retrieve i18n as a json object to
layout level or any other global level of the application. So on client
side we can use the i18n language details anywhere.
We can get the language data
On Fri, Mar 24, 2017 at 12:53 AM, Nipuna Chandradasa
wrote:
> I don't think there is a feasible solution rather than loading i18n config
> file as a json object to the client side in the beginning of the app... i
> think from uuf side we can provide a api for that... WDYT?
>
I don't think there is a feasible solution rather than loading i18n config
file as a json object to the client side in the beginning of the app... i
think from uuf side we can provide a api for that... WDYT?
On Thu, Mar 23, 2017 at 5:29 PM, SajithAR Ariyarathna
wrote:
>
Currently UUF doesn't support i18n in client-side.
@UUF Team,
We need to come up with a solution for client-side i18n. Shall we start a
discussion on this?
Thanks.
On Thu, Mar 23, 2017 at 4:36 PM, Prasanna Dangalla
wrote:
> Hi Sajith,
>
> This is for Client-side JS
>
>
Hi Sajith,
This is for Client-side JS
*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware
*cell: +94 718 11 27 51*
*twitter: @prasa77*
On Thu, Mar 23, 2017 at 2:54 PM, SajithAR Ariyarathna
wrote:
> Hi Prasanna,
>
> Is
Hi Prasanna,
Is there a mechanism defined to use something like i18n in javascript ?
Server-side JS or Client-side JS?
On Thu, Mar 23, 2017 at 11:02 AM, Ayesha Dissanayaka
wrote:
> Hi Prasanna,
>
> Similar discussion was started sometime back in [1].
> Issues in [2], [3] have
Hi Prasanna,
Similar discussion was started sometime back in [1].
Issues in [2], [3] have some suggestions.
[1] [Dev][UUF][IS-6] Enable i18n support in javascript
[2] https://github.com/wso2/carbon-uuf/issues/160
[3] https://github.com/wso2/carbon-uuf/issues/166
On Thu, Mar 23, 2017 at 10:46
Adding Manu and Sajith.
On Thu, Mar 23, 2017 at 10:44 AM, Prasanna Dangalla
wrote:
> Hi Nisala,
>
> I was wondering how to include this in javascript files, not in hbs files.
> Is there a way to include in javascrip fiels ?
>
> Thanks
>
> *Prasanna Dangalla*
> Senior Software
Hi Nisala,
I was wondering how to include this in javascript files, not in hbs files.
Is there a way to include in javascrip fiels ?
Thanks
*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware
*cell: +94 718 11 27 51*
*twitter: @prasa77*
On
Hi Prasanna,
UUF has the capability of facilitating above mentioned scenario. You can
define your language property file under the ‘lang’ directory as follows.
|src
| |main
| | pages/
| | fragments/
| | layouts/
|
Hi Devs,
Is there a mechanism defined to use something like i18n in javascript ?
Does the UUF has the capability of facilitating this ? You inputs are
highly appreciated.
Thanks
*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware
*cell: +94
26 matches
Mail list logo