What is the problem?
When typing a new translation I see in the console:
TypeError: appConfig.translations[a][o.getValue(...)] is undefined[Learn More] 3 app.2ff9235f.js:65:42145 s/< https://tools.wmflabs.org/svgtranslate-test/assets/app.2ff9235f.js:65:42145 each https://tools.wmflabs.org/svgtranslate-test/assets/app.2ff9235f.js:39:2646 each https://tools.wmflabs.org/svgtranslate-test/assets/app.2ff9235f.js:39:1320 s https://tools.wmflabs.org/svgtranslate-test/assets/app.2ff9235f.js:65:41960 dispatch https://tools.wmflabs.org/svgtranslate-test/assets/app.2ff9235f.js:50:37878 add/f.handle https://tools.wmflabs.org/svgtranslate-test/assets/app.2ff9235f.js:50:35943
Seems to happen when switching focus on the text inputs.
Only seems to happen if the translation for the selected language does not already exist in the SVG.
I don't see any side-effects of the error.
Steps to reproduce problem
- Open up any file in SVG translate
- Select a "to" language which the file does not already have
- Open the browser console
- Type something in an input box and change focus (press tab or click away from the field)
Expected behavior: No error message
Observed behavior: Error message in the console
Browser: Firefox 60