How to preview translated strings in the app itself?

I’ve been filling out the translation for my language in pontoon and I’d like to see how it all looks in context, in the app itself. How would I do that? Maybe I missed it somewhere but I didn’t find any instructions regarding this.

Do i somehow get the translation files from pontoon and put them somewhere in my local Anki install? Or do I have to build from source to be able to do this?

1 Like

Yes, you would have to build from source.

Though if you only want to check certain strings in certain contexts, then you could use the AnkiWebView Inspector Addon and change the string on the fly. Doesn’t work for non-webviews though.

One of the main benefits of the localization being fully integrated is that you don’t need to preview it in the app. If you keep length in mind, and do a bit of sampling/testing when it first comes out in a beta release, the system should take care of the rest and the localized text will just work. Core Interface - Anki Translation Guide

Ah, I see, that’s unfortunate. So I’d have to install rust and compile everything from scratch or is there a quicker way with those prebuilt python wheel thingies? I don’t need anything fancy, I only want to use the .ftl files for my locale to see what it would look like in the UI.

Seeing everything in the UI would help with testing, yes, but the main reason I want to do it is for a morale boost, to see the results of my translation labor take shape in the app itself. Working in pontoon feels kinda disconnected when I can’t see the results in context. And who knows when the next beta will release, it could be a while…

Ok so I built from source but the newest strings aren’t in the app, only some older ones. Are there any instructions for this that I might have missed?
I went into the core-repo folder and pulled the latest changes, so the newly translated strings from pontoon are definitely in that core-repo folder, I checked. During build it even said that it’s building anki-i18n or something similar, so I think it should have worked? Do I need to clear some sort of cache to force it to take the new strings or something?

Could you tell me the following so that I could try on my end?

  1. The language that you update.
  2. The exact, new string you expect to see.
  3. The (old) string you see instead of it?
  4. A link to pontoon of one of your updated strings.

Language - Croatian (hr)
Expected: Preuzmi dijeljeni (this is the “Get shared” string under decks.ftl)
Found: Podijeli
link to string on pontoon:

1 Like

You need to run git pull inside the ftl/core-repo and ftl/qt-repo submodules to pull the latest changes to the repo.

2 Likes