localized-strings
localized-strings copied to clipboard
Typescript support documentation update
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: string;
time: string;
}
const locales = new LocalizedStrings<IStrings>({
it: {
score: "Punti",
time: "Tempo"
},
en: {
score: "Score",
time: "Time"
}
});
It seems to be already resolved at a6fe1028f7d22594752703e9c0d65cef34ceeb4a.