localized-strings
localized-strings copied to clipboard
Simple module to localize the strings of any JS based program
Hi, I'm getting this error on typescript Error: 'default' is not exported by node_modules/localized-strings/lib/LocalizedStrings.js
As far as I can tell the return type of formatString is just a string. At the moment it returns a weird type if you pass it an object with...
NodeJS
Is it possible to use with NodeJS? So far when I try, I get the error : const key = new LocalizedStrings({ ^ TypeError: LocalizedStrings is not a constructor
If these features already exist, I didn't see them in the code and no documentation on it is available. As seen below, the BCP-47 locale standard (as used by browsers)...
Hi Stefano and thanks for this library, Object literals are currently supported and mentioned in the doc, for instance: ```javascript en:{ how:"How do you want your egg today?", boiledEgg:"Boiled egg",...
Hey! Because of some changes in our backend we got an undefined for the 2nd parameter (valueForPlaceholder) of `formatString` and therefore we get a _TypeError: undefined is not an object...
By default **localized-strings** is transpiling to **commonjs** modules, when used in **Angular** it shows this Warning: [my-angular-library] depends on 'localized-strings'. CommonJS or AMD dependencies can cause optimization bailouts. For more...
This is how i managed to set up localized-strings with TypeScript 2.8 (the one mentioned in the documentation didn't compile): ``` import LocalizedStrings from 'localized-strings'; export interface IStrings { score:...
The `formatString` method is defined as: ``` formatString( str: string, ...values: Array ): Array | string; ``` The return type should be just `string`. As far as I can tell,...
I have a text that contains few hyperlinks, and I was wondering which is the best way to deal with this case ?