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

Resourcemanager special chars as default culture #1

Closed Thodor12 closed 3 years ago

Thodor12 commented 3 years ago

Currently if you put something like en-US as the default culture in the typescript file would fail to generate property because "this.resources.en-US.hasOwnProperty" is considered invalid and will throw an error.

lheasysoft commented 3 years ago

I did indeed not think of this case. We only use "de", "fr", "en", etc as culture keys. I am sorry for the inconvenience. Thanks for your contribution, it's very welcome 👍 Pull request accepted. A new version of the npm-package will be published asap.