i18n-node icon indicating copy to clipboard operation
i18n-node copied to clipboard

staticCatalog does not exist for configuration (TypeScript)

Open CypElf opened this issue 6 years ago • 3 comments

I would like to use the staticCatalog property of the configuration function to load the translations from YAML files. My project is using TypeScript and so I use the typed version of i18n, but in this one, the property staticCatalog does not exist :

Object literal may only specify known properties, and 'staticCatalog' does not exist in type 'ConfigurationOptions'.

What can be done instead ?

CypElf avatar Oct 31 '20 17:10 CypElf

there is PR pending which should fix that issue https://github.com/DefinitelyTyped/DefinitelyTyped/pull/47811

mashpie avatar Oct 31 '20 17:10 mashpie

Thanks. I guess I'll have to wait until it's merged

CypElf avatar Oct 31 '20 17:10 CypElf

Pull request merged

CypElf avatar Dec 29 '20 18:12 CypElf