Commit Graph

43 Commits

Author SHA1 Message Date
Eric
999ad286ae Fix TypeScript definition. 2021-02-23 17:22:03 -05:00
Aaron Robson
2a9b99a532 setLanguage docstring spelling correction 2020-01-10 22:32:16 +00:00
Domino987
f706f1adf5
Make language in getString optional 2019-07-25 21:28:36 +02:00
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
8a700b20b5 Updated TS definition 2018-04-05 21:47:01 +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
bc335050a7 Updated typescript definition 2018-03-18 23:03:14 +01: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
Stefano Falda
83cac436b8 Modified export to improve typescript support 2018-03-17 22:17:30 +01:00
Stefano Falda
65c882b6c4 Fix problem with server side rendering 2018-03-17 16:56:17 +01:00
Stanley Goldman
aee11aef90
Merge remote-tracking branch 'remotes/stefalda/master' into localized-string-methods 2018-02-21 19:05:16 -05:00
Stefano Falda
e49d16c3ee Undo last commit that breaks tests... 2018-02-08 22:00:42 +01:00
Jon Ander Pérez
87ecd65a60 Fix server side. Build to lib 2018-02-07 12:10:22 +01:00
Stanley Goldman
cc7236ecda
Formatting fixes 2018-01-26 15:20:46 -05:00
Stanley Goldman
3a7743cbbd
Restore original factory method name 2018-01-26 15:16:51 -05:00
Stanley Goldman
a26b8b7f33
Exposing LocalizedStrings<T> 2018-01-26 14:56:08 -05:00
Stefano Falda
f3f7385136
Merge pull request #64 from ceyhuno/patch-1
Fix typings for formatString
2018-01-22 21:29:29 +01:00
Ceyhun Ozugur
d4f6370e9c
Fix typings for formatString 2018-01-22 15:14:17 +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
2252ce2af4 Fixed typescript definition problems and upgrade to react 16 2017-10-22 18:49:40 +02: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
5cde1b7744 Improved cocumentation and interface declaration 2017-05-24 00:04:52 +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
961b998be6 Added method to bring in on pair with the react-native-localization version 2017-01-27 20:34:33 +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
Stefano Falda
22e6fc6705 Added typescript definitions support 2016-08-19 07:19:21 +02: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