Are you sure? I use javascript on my weewx pages - do to simple things like rotate through a set of photos. I also use the steelseries gauges that are all javascript running in the browser. Is there a reason you can't embed javascript to grab the locale from the browser and do the formatting?
On Wed, May 3, 2023 at 9:59 AM [email protected] < [email protected]> wrote: > Doesn't apply here since the browser gets static HTML, produced by weewx > on a (potentially) remote machine different from the webserver, the HTML is > downloaded from. I am looking for a way to tell weewx to format number > values for an internationalized skin in a certain way. As far as I know, > only the language can be set for an internationalized skin, not the locale. > > p q schrieb am Mittwoch, 3. Mai 2023 um 17:18:09 UTC+2: > >> In my professional life I ask my devs to get the locale from the browser >> and use the tech stack to do the conversion automatically. Like JavaScript >> .toLocaleString(). >> >> Don't know if that's feasible here. >> >> On Wed, May 3, 2023, 8:07 AM [email protected] <[email protected]> >> wrote: >> >>> I need a hint how to handle formatting numbers (values) with >>> internationalized skins. Specifying the language doesn't have an apparent >>> effect on how values are formatted, it seems like number value formatting >>> is connected to the systems (default?) locale. I even notice inconsistent >>> results, for instance with the standard skin: temperature is formatted in >>> another way than an alamnac value: in the specific case the temperature >>> value is formatted with a comma as decimal separator, the almanac angle >>> with a period as decimal separator. >>> >>> Is there a way to specifiy a locale to be used for a skin (or a >>> translated skin)? [image: 2023-05-03 17_01_24.png] >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "weewx-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/62429245-50ef-4f87-89ac-b8cb1b0d064en%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/62429245-50ef-4f87-89ac-b8cb1b0d064en%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/e8ded1e4-2bd9-42d3-86e5-912db59015f3n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/e8ded1e4-2bd9-42d3-86e5-912db59015f3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Peter Quinn (415)794-2264 -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAA1SM22Z00wC-Z0etjnu_tYVnajtsm3q2V0ynoYbN4firT99GQ%40mail.gmail.com.
