Suggested fixes for delay string, widen priority dropdown, add German and Turkish

This commit is contained in:
Philipp Heckel 2022-04-08 15:21:22 -04:00
parent d399d2fe1c
commit 738ee5cf35
4 changed files with 11 additions and 3 deletions

View file

@ -18,6 +18,8 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release
**Translations (web app):**
* Bulgarian (thanks to [@StoyanDimitrov](https://github.com/StoyanDimitrov))
* German (thanks to [@cmeis](https://github.com/cmeis))
* Turkish (thanks to [@ersen](https://ersen.moe/))
-->

View file

@ -70,7 +70,7 @@
"publish_dialog_filename_label": "Filename",
"publish_dialog_filename_placeholder": "Attachment filename",
"publish_dialog_delay_label": "Delay",
"publish_dialog_delay_placeholder": "Delay delivery, e.g. 1649029748, 30m, or tomorrow, 9am",
"publish_dialog_delay_placeholder": "Delay delivery, e.g. {{unixTimestamp}}, {{relativeTime}}, or \"{{naturalLanguage}}\" (English only)",
"publish_dialog_other_features": "Other features:",
"publish_dialog_chip_click_label": "Click URL",
"publish_dialog_chip_email_label": "Forward to email",

View file

@ -390,7 +390,9 @@ const Language = () => {
<FormControl fullWidth variant="standard" sx={{ m: 1 }}>
<Select value={i18n.language} onChange={(ev) => i18n.changeLanguage(ev.target.value)}>
<MenuItem value="en">English</MenuItem>
<MenuItem value="de">Deutsch</MenuItem>
<MenuItem value="bg">Български</MenuItem>
<MenuItem value="tr">Türkçe</MenuItem>
</Select>
</FormControl>
</Pref>

View file

@ -310,7 +310,7 @@ const PublishDialog = (props) => {
<FormControl
variant="standard"
margin="dense"
sx={{minWidth: 120, maxWidth: 200, flexGrow: 1}}
sx={{minWidth: 170, maxWidth: 300, flexGrow: 1}}
>
<InputLabel/>
<Select
@ -441,7 +441,11 @@ const PublishDialog = (props) => {
<TextField
margin="dense"
label={t("publish_dialog_delay_label")}
placeholder={t("publish_dialog_delay_placeholder")}
placeholder={t("publish_dialog_delay_placeholder", {
unixTimestamp: "1649029748",
relativeTime: "30m",
naturalLanguage: "tomorrow, 9am"
})}
value={delay}
onChange={ev => setDelay(ev.target.value)}
disabled={disabled}