add a couple more translations

This commit is contained in:
Chris Kruining 2025-01-07 12:11:48 +01:00
parent a31168ca6c
commit 55ae8902a8
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 27 additions and 5 deletions

View file

@ -29,6 +29,17 @@
"insertKey": "Insert new key", "insertKey": "Insert new key",
"insertLanguage": "Insert new language", "insertLanguage": "Insert new language",
"delete": "Delete selected items" "delete": "Delete selected items"
},
"prompt": {
"newKey": {
"title": "Which key do you want to create?",
"placeholder": "Name of the new key",
"description": "Hint: use `.` to denote nested keys,\ni.e. `this.is.some.key` would be a key that is four levels deep."
},
"newLanguage": {
"title": "Which language do you want to add?",
"placeholder": "Locale code, i.e. en-GB for Britisch English"
}
} }
} }
}, },
@ -39,4 +50,4 @@
} }
} }
} }
} }

View file

@ -29,6 +29,17 @@
"insertKey": "Voeg nieuwe sleutel toe", "insertKey": "Voeg nieuwe sleutel toe",
"insertLanguage": "Voeg nieuwe taal toe", "insertLanguage": "Voeg nieuwe taal toe",
"delete": "Verwijder geselecteerde items" "delete": "Verwijder geselecteerde items"
},
"prompt": {
"newKey": {
"title": "Welke sleutel wil je toevoegen?",
"placeholder": "Naam van de nieuwe sleutel",
"description": "Hint: gebruik een `.` voor geneste sleutels,\nbijv. `this.is.some.key` is een sleutel die vier lagen diep is."
},
"newLanguage": {
"title": "Welke taal wil je toevoegen?",
"placeholder": "Landcode, bijv. en-GB voor Brits Engels"
}
} }
} }
}, },

View file

@ -346,12 +346,12 @@ const Editor: Component<{ root: FileSystemDirectoryHandle }> = (props) => {
</Menu.Item> </Menu.Item>
</Menu.Root> </Menu.Root>
<Prompt api={setNewKeyPrompt} title="Which key do you want to create?" description={<>hint: use <code>.</code> to denote nested keys,<br /> i.e. <code>this.is.some.key</code> would be a key that is four levels deep</>}> <Prompt api={setNewKeyPrompt} title={t('page.edit.prompt.newKey.title')} description={t('page.edit.prompt.newKey.description')}>
<input name="key" placeholder="name of new key ()" value="keyF.some.deeper.nested.value" /> <input name="key" placeholder={t('page.edit.prompt.newKey.placeholder')} />
</Prompt> </Prompt>
<Prompt api={setNewLanguagePrompt}> <Prompt api={setNewLanguagePrompt} title={t('page.edit.prompt.newLanguage.title')}>
<input name="locale" placeholder="locale code, i.e. en-GB" value="fr-FR" /> <input name="locale" placeholder={t('page.edit.prompt.newLanguage.placeholder')} />
</Prompt> </Prompt>
<Sidebar as="aside" label={tree().name} class={css.sidebar}> <Sidebar as="aside" label={tree().name} class={css.sidebar}>