Repository navigation
i18n: translation support for command palete - #11641
Conversation
mitchellh
left a comment
There was a problem hiding this comment.
I definitely want more reviewers, but this in general makes sense. I made one note.
|
It would be nice if Latvian translation updates were done in a separate future PR, since that requires a review from a completely different set of people as the rest of the code and is orthogonal to this PR. |
|
Also, I'm not sure how it's done but I believe you need to update all the other translation files to have the untranslated strings placed in them; other PRs that added translations (e.g. #9976) have done so. |
|
Ok, I'll remove Latvian translation for now. Should I also remove |
|
Definitely keep the |
It looks like ghostty/src/build/GhosttyI18n.zig Lines 185 to 190 in c2e9de2 If it changed every single translation file to add untranslated strings, you should probably |
|
I guess, test should be retried https://github.com/ghostty-org/ghostty/actions/runs/23306874737/job/67784178019?pr=11641 |
|
Thanks!
Done. |
|
@EriksRemess Could you rebase? We're looking to merge this before the v1.4 string freeze :) |
13ba95f to
e0744dd
Compare
|
Is this something that can be controlled? Because I don't want to be at the mercy of my locale for the command palette muscle memory... (To be clear, my UI language is set to English, different from the locale. So now the command palette and nothing else is in a different -- undesired -- language...) |
Controlled how? Are you searching for a specific English word in the command palette that wouldn't be there if the command palette was localized? |
Set |
|
But I am already forcing everything at system level to English, which Ghostty doesn't (fully) respect... (Sorry, I should make clear that this is on macOS, where interface language and other locale (e.g., date or currency) settings can be set independently. Platform matters here, of course.) |
|
Force everything in Ghostty? https://ghostty.org/docs/config/reference#language It's not currently possible to only change it for the command palette though. Edit:
That sounds wrong though… maybe it might be worth opening a discussion on that if you care to. |
Oh, ah, hm. That does appear to be a regression. We haven't formally started translating the macOS app. The command palette is the first crossplatform code that has had translation added and seems we need to figure that out. |
Sorry, but that makes no difference. |
Yeah, that's really a GTK-only config. |
|
So maybe this feature can be made GTK-only for now? |
We'll need to figure out the best way to handle this. Not sure what the best solution will be. |

Most obvious next step in translating Ghostty is the command palette.
Added support for i18n.N_ (https://docs.gtk.org/glib/i18n.html#macros).
Made a Latvian translation for the command palette to test. Codex did bulk of the translations but I verified them.