Hi together, I tried to add the CF Builder Extensi...
# adobe
d
Hi together, I tried to add the CF Builder Extension into VSCode: But look:
message has been deleted
m
What language do you have your VS Code set to?
d
The VSCode UI is in german
I understand. wtf
m
Ok. I think the issue is that they don't have the German translation setup properly for the extension.
Or whatever they fall back on when there's no translation available.
d
Hm, what do you think. Is it possible to find the resource files and copy them for german?
m
I will check it out
👍 1
d
If I change the UI language to english everything looks fine.
m
Yes, that makes sense. It is natively in English. And the only language resource file I found was for Japanese.
d
@Mark Takata (Adobe) You should add some fallback if UI language is not english!
m
I'm not sure what the best way to add the translation is without doing a lot of testing. Because the project is not open-source, I can only find the references in the minified JS that sets those strings as the defaults. Normally there are translation files for these strings like with the
ja
one, but these keys are not even in there. You could add a
package.nls.de.json
and see how it helps, but I cannot say for sure that it's used in this webview or that the default strings it's showing are the actual keys. I'm not super familiar with localization in VS Code, and what I do know is more about the new, integrated localization they added a couple months ago which this wouldn't be using. Either way, it will get overwritten whenever there's an extension update, so back it up if you decide to go that route.
d
I changed the UI language to englich and I will keep it. VSCode gets the UI language from the operating system as default
m
Ok, as long as you're comfortable with that. But they do need to fix their default strings. And it would probably be nice to have more than just English and Japanese.
d
Thats why I added Mark to this thread
m
For that, it's probably best to create a bug report in their tracker too. Note that the product is "ColdFusion" and the version is "VSCode 1.0". It's not under "ColdFusion Builder" like you'd expect.
Never mind. I see there's already one. https://tracker.adobe.com/#/view/CF-4214562
Just vote/comment then
🎉 1
m
You are correct that the only translations available are in Japanese. You will note also that we do not have localizations into other languages in the core ColdFusion product as well. If enough votes are logged for a certain language we can consider adding it.
d
It would be nice, if english will be shown if the UI is any other language
m
Definitely a good point. I am not sure if we control that or if its a VS Code thing (like, there's hundreds and hundreds of languages and it is expecting something, which if not found, makes things go bonkers). I'd hate to have to provide a fallback for every language that is just the english files
m
You provide one fallback string for each translatable string
It only makes sense that it's English. And as you say, it's necessary since you're not going to translate to every language.
I'd recommend using the new, native l10n API too. Historically, extension localization has relied on a Node package, but that had some limitations.
Although I think this is a webview, so maybe not for that. I'm honestly not as familiar with webviews.
d
@mtbrown thnx for your investigation
m
I've pinged on the VSCCFB extension team with this thread and highlighted the tracker ticket. I'll report back with anything I get back from the team.