blueasysoft / resx-json-typescript-converter

A small tool to generate json-files and a ready-to-use resource manager in typescript from c# *.resx-files.
Other
2 stars 5 forks source link

Issue w/ default #2

Open kennetherland opened 2 years ago

kennetherland commented 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:

`export class HydraCli extends resourceFile {

constructor(resourceManager: resourceManager) {
    super(resourceManager);
    this.resources = (<any>resxHydraCli);
}

... `

lheasysoft commented 1 year ago

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?