BangleApps/apps/locale
Johan Dahl 1c535cd77c
Swedish abbreviations for speed
The Swedish abbreviation for speed is km/tim (even if km/h often is used) but NOT kmh
2022-04-08 12:40:36 +02:00
..
ChangeLog 0.17: Fix regression where long month names were 'undefined' (fix #1641)Fix issue where long month names included 'undefined' (fix #1641) 2022-03-31 11:39:59 +01:00
README.md Added notification widget 2020-06-04 14:49:35 +01:00
locale.html merge in https://github.com/espruino/EspruinoAppLoaderCore/pull/11 in such a way that we can use it from apps/locales as well (to avoid some duplication!) 2022-04-07 16:08:39 +01:00
locale.png Added locale loader courtesy of @MaBe's extremely hard work! (ref #105) 2020-03-04 16:42:44 +00:00
locales.js Swedish abbreviations for speed 2022-04-08 12:40:36 +02:00
metadata.json 0.17: Fix regression where long month names were 'undefined' (fix #1641)Fix issue where long month names included 'undefined' (fix #1641) 2022-03-31 11:39:59 +01:00

README.md

Languages (locale)

Country-specific app internationalisation.

This is not an app, but instead it is a library that can be used by other applications or widgets to display messages.

Usage

Some menus that pop up are translated automatically, but if you're writing an application you can use the locale library to do all the translation for you.

See https://www.espruino.com/Bangle.js+Locale for full examples.

// Date to date string (long)
>require('locale').date(new Date())
="Donnerstag, 02. April 2020"

// Date to date string (short)
>require('locale').date(new Date(),1)
="02.04.2020"

Bangle.js has a locale library built in that is just a standard British English (en_GB) localisation - so you can use locale in your apps without requiring users to have this Language library installed.