BangleApps/apps/locale
Jeroen Peters 96078a2791 iOS app 0.08
============
 Added more details from music (instead of Undefined)
 Added more app identifiers
 Added Readme

Messages app 0.13
=================
 New animated widget bell icon (instead of large blinking 'MESSAGES')
 New app icon
 Added screenshot
 Extra app-specific notification icons

 Locale 0.14
 ===========
  Added some first translations for Messages in nl_NL
2021-12-14 01:34:30 +01:00
..
ChangeLog iOS app 0.08 2021-12-14 01:34:30 +01:00
README.md Added notification widget 2020-06-04 14:49:35 +01:00
locale.html minor fixes for #952 2021-11-29 09:52:47 +00: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 iOS app 0.08 2021-12-14 01:34:30 +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.