Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

changes to base translation not detected when using outputFormat: 'JavaScript' #105

Closed
ivanhofer opened this issue Oct 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ivanhofer
Copy link
Owner

Describe the bug

issue

The generator can't detect changes because it uses import to load the contents of the base translation file. The import statement gets cached so the process is not able to detect the changes.

possible solution

We can't just copy the file and import it from there to a new location because it may contain other imports.
Maybe we can also use TypeScript to "compile" the JavaScript and all imports into a temporary folder and import it from there.

workaround

restart the generator after making changes to the base translation

Reproduction

run the generator and make some changes to the base-translation file

Logs

No response

Config

{
   "outputFormat": "JavaScript"
}

Additional information

No response

@ivanhofer ivanhofer added the bug Something isn't working label Oct 14, 2021
@ivanhofer
Copy link
Owner Author

was fixed in version 2.44.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant