Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue w/ default #2

Open
kennetherland opened this issue Oct 6, 2022 · 1 comment
Open

Issue w/ default #2

kennetherland opened this issue Oct 6, 2022 · 1 comment
Assignees

Comments

@kennetherland
Copy link

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 lheasysoft self-assigned this Jun 14, 2023
@lheasysoft
Copy link
Collaborator

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants