localized-strings icon indicating copy to clipboard operation
localized-strings copied to clipboard

Typescript support documentation update

Open gnyekhelyi opened this issue 6 years ago • 1 comments

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"
            }
});

gnyekhelyi avatar Apr 11 '18 18:04 gnyekhelyi

It seems to be already resolved at a6fe1028f7d22594752703e9c0d65cef34ceeb4a.

Wintus avatar Apr 20 '20 10:04 Wintus