-
Notifications
You must be signed in to change notification settings - Fork 1
development status
Sebastian Lasse edited this page Sep 6, 2015
·
4 revisions
for usage see test_i18n.js in /_dev !
- specify languages you want to detect (defaults to 30 most spoken plus a few selected)
- loads according modules at runtime async ...
- returns best language or as many as you want, e.g.
[ { id: 'eng', name: 'UK English', score: 1.0197278641335634 },
{ id: 'spa', name: 'Spanish', score: 0.5606808290155437 },
{ id: 'cmn',
name: 'Chinese, Mandarin (Simplified)',
score: 0.08094245826137005 } ]
redaktor/text
© 2014–2015 redaktor foundation & contributors. New BSD license.