Stefano Falda
4733142932
Compiled last PR
2018-10-18 22:52:03 +02:00
Hendrik Volschenk
04592cd2a8
fix: add empty string handler The same fix that was applied to localized-strings. formatString() now works with a key that does not exist
2018-05-16 07:41:40 +02:00
Stefano Falda
c5aac1bf40
Updated formatString behaviour - returns string or array if contains react objects
2018-04-03 22:01:38 +02:00
Stefano Falda
d9c49d12ff
Comment moved
2018-03-17 23:23:55 +01:00
Stefano Falda
2abcc7b981
Refactor to use the localized-strings package
2018-03-17 23:21:28 +01:00
Josh Salverda
9808ad6336
Handle falsy values
...
- If values are falsy, handle them correctly in formatString
- Add unit test to cover functionality
- Refactor unit tests a bit, the strings object was being overwritten by the tests and wasn't being reset again afterwards
2018-01-18 19:03:13 -05:00
Josh Salverda
1b5b46f606
Handle components in named tokens
2018-01-16 16:10:01 -05:00
Josh Salverda
cc39a62e6e
Add ability to use named tokens
...
- Instead of just defining integer-based format strings can now alternatively supply a string-based token, eg. {month}
2018-01-15 11:20:01 -05:00
Stefano Falda
3f928c9260
Fix for IE11 and not using array includes
2017-08-24 22:06:42 +02:00
Henrik Raitasola
3ad9910102
Update build
2017-07-14 00:24:08 +03:00
Henrik Raitasola
fec5e03e51
Rename function to make it purpose more clear
2017-07-14 00:19:09 +03:00
Henrik Raitasola
a234f915aa
Compile who directory
2017-07-12 22:05:47 +03:00
Henrik Raitasola
7199d55f26
Update build
2017-07-12 21:57:54 +03:00
Henrik Raitasola
5989354ad3
Update compiled file
2017-07-11 22:36:47 +03:00
Stefano Falda
5faa5b4b8e
Fixed problem with reserved property names checking
2017-06-12 23:12:55 +02:00
Stefano Falda
281ddd7447
Added setContent method
2017-05-24 00:16:18 +02:00
Stefano Falda
93fa756889
Fixed problem with missing keys-values
2017-02-09 23:10:14 +01:00
Stefano Falda
312c995e52
Added build script
2017-01-27 21:02:11 +01:00
Stefano Falda
354d70c394
Fixes the interfaceLanguage undefined problem
2017-01-27 12:53:56 +01:00
Kasper Green
8ea908fdd3
navigator fix (navigator is not defined on server)
2016-10-25 20:08:13 +03:00
Antti Pilto
b63d3e008e
fix interfaceLanguage undefined
2016-07-23 15:49:53 +03:00
James Carbine
61dcec33d6
Fix so the navigator.languages array is used by default
2016-06-11 06:56:04 -06:00
Ankit Shah
91314520aa
Added default to 'en-US' when navigator.language or navigator.interfaceLanuguage is nor present
2016-04-12 20:32:35 +05:30
Stefano Falda
c85401024d
Fixed problem with transpilation
2016-01-17 23:49:16 +01:00