Open kennetherland opened 2 years ago
My grunt file looks as such:
` let resxConverter = require("resx-json-typescript-converter");
grunt.log.writeln("Converting language resources"); resxConverter.convertResx(["./HydraCli.en.resx", "HydraCli.zh-CHS.resx"], "./src/resources", { defaultResxCulture: "en", mergeCulturesToSingleFile: true, generateTypeScriptResourceManager: true, searchRecursive: true });
`
Resulting resourceManager looks as such:
`export class HydraCli extends resourceFile {
constructor(resourceManager: resourceManager) { super(resourceManager); this.resources = (<any>resxHydraCli).default; }
... `
(resxHydraCli).default equals null. If I remove the default property as such, it will work:
constructor(resourceManager: resourceManager) { super(resourceManager); this.resources = (<any>resxHydraCli); }
Sorry. I have been pausing my work for quite some time (due to personal/family reasons). I am back and wonder whether you still need help with this?
My grunt file looks as such:
` let resxConverter = require("resx-json-typescript-converter");
`
Resulting resourceManager looks as such:
`export class HydraCli extends resourceFile {
... `
(resxHydraCli).default equals null. If I remove the default property as such, it will work:
`export class HydraCli extends resourceFile {
... `