fkirc / attranslate

A command line tool for translating JSON, YAML, CSV, ARB, XML (via a CLI)
https://www.npmjs.com/package/attranslate
Other
336 stars 27 forks source link

Fix invalid typescript interfaces #265

Closed abichinger closed 3 months ago

abichinger commented 3 months ago

The generated Typescript interface for nested values is invalid.

e.g. the following json file

// en.json
{
  "state": {
    "ready": "Ready"
  }
}

will produce the following interface.

export interface AppLocalizations {
  state.ready: string  // the key state.ready should be enclosed in quotes
}