Skip to content

Releases: musterknabe/translate.js

v1.1.0

16 Jun 17:27
Compare
Choose a tag to compare

Added syntax for translations where count is greater than X.

var messages = {
    'files': {
        0: 'No files',
        1: '{n} file',
        n: '{n} files',
        gt99: '99+ files'
    }
}

t('files', 100) // returns '99+ files'

v1.0.1

24 Mar 14:21
Compare
Choose a tag to compare

Fixed:

Regression resulting in always logging missing translation in debug mode, even if translation was found.

v1.0.0

23 Mar 14:27
Compare
Choose a tag to compare

Had it in production for quite a while now and feel it's ready for v1.0.0

Changes:

Only adds missing translation markers in debug mode.

v0.0.2

07 May 17:26
Compare
Choose a tag to compare

Added option to use a custom namespace splitter.

v0.0.1

07 May 17:28
Compare
Choose a tag to compare

First Version with basic functions.