Re: [Architecture] [SP-Dashboards] Internationalization of widgets

2018-11-24 Thread Dakshika Jayathilaka
Hi All, IMO widget itself needs to contain all the necessary files which are substantially independent of the host page. Host page needs to have the capability of getting and load necessary dependencies accordingly. I'm not fully aware of the path that you mentioned in option 2. But If

Re: [Architecture] [SP-Dashboards] Internationalization of widgets

2018-11-23 Thread Tanya Madurapperuma
On Wed, Nov 21, 2018 at 7:05 PM Fazlan Nazeem wrote: > +1 for the second approach. > > On Wed, Nov 21, 2018 at 5:04 PM Ruwini Wijesiri wrote: > >> Hi, >> >> We have a requirement to internationalize the text content of widgets. So >> far we have identified 2 approaches to achieve this; >> >>

Re: [Architecture] [SP-Dashboards] Internationalization of widgets

2018-11-21 Thread Fazlan Nazeem
+1 for the second approach. On Wed, Nov 21, 2018 at 5:04 PM Ruwini Wijesiri wrote: > Hi, > > We have a requirement to internationalize the text content of widgets. So > far we have identified 2 approaches to achieve this; > >1. Have a single locale.json file that contains the message id to

[Architecture] [SP-Dashboards] Internationalization of widgets

2018-11-21 Thread Ruwini Wijesiri
Hi, We have a requirement to internationalize the text content of widgets. So far we have identified 2 approaches to achieve this; 1. Have a single locale.json file that contains the message id to text mapping for all locales within the *'resource'* directory of the widget. However.