mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Fix the typed AI chat translations
The quick commands "Reset to globe view" and "Show earthquakes" reached t() through a .map(), so the catalog check never saw them and every language showed them in English. They are now marked with msg() and translated. Review of the 71 strings from #1507 in all eleven languages: - zh-Hant is regenerated from zh-CN with OpenCC s2tw, as its guide says; 40 entries had Taiwan vocabulary instead. - ar "Dock to the right" names the left side, where RTL puts that rail. - ja "What am I looking at?" no longer asks what the assistant sees. - Provider Settings, dock, provider, live and map use each glossary's terms. - de drops the du-form; ja drops spaces between Japanese and Latin text. - Calques, register and the example commands read naturally.
This commit is contained in:
1 parent
4859ba4c94
commit
e66b99c8ff
13 files changed
+272
-249
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { t } from '../i18n/index.js';
|
||||
import { msg, t } from '../i18n/index.js';
|
||||
|
||||
/**
|
||||
* Chat suggestions and the one chat preference (quick commands), written to
|
||||
@@ -17,10 +17,10 @@ export function bindChatPreferences({ ui, getDraft, setDraft }) {
|
||||
};
|
||||
const quickCommands = () =>
|
||||
[
|
||||
'Fly to Tokyo',
|
||||
'Show live flights',
|
||||
'Reset to globe view',
|
||||
'Show earthquakes',
|
||||
msg('Fly to Tokyo'),
|
||||
msg('Show live flights'),
|
||||
msg('Reset to globe view'),
|
||||
msg('Show earthquakes'),
|
||||
].map((text) => t(text));
|
||||
try {
|
||||
const stored = JSON.parse(localStorage.getItem(key));
|
||||
|
||||
Reference in new issue
Block a user