Thread:Project:Support desk/i18n translations in Javascript?

Is it possible to use translated text in Javascript? An extension adds a edit-toolbar button to insert images. It inserts, but how can the script use the German translation   (and other languages) without translating it again in the Javascript itself?