web/i18n: move call to action button strings to own file
This commit is contained in:
parent
21ef35ea20
commit
536d9c9742
9 changed files with 32 additions and 30 deletions
|
@ -1,7 +1,5 @@
|
||||||
{
|
{
|
||||||
"picker.item.photo": "photo thumbnail",
|
"picker.item.photo": "photo thumbnail",
|
||||||
"picker.item.video": "video thumbnail",
|
"picker.item.video": "video thumbnail",
|
||||||
"picker.item.gif": "gif thumbnail",
|
"picker.item.gif": "gif thumbnail"
|
||||||
|
|
||||||
"saving.copied": "link copied"
|
|
||||||
}
|
}
|
||||||
|
|
15
web/i18n/en/button.json
Normal file
15
web/i18n/en/button.json
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"gotit": "got it",
|
||||||
|
"cancel": "cancel",
|
||||||
|
"reset": "reset",
|
||||||
|
"done": "done",
|
||||||
|
"downloadAudio": "download audio",
|
||||||
|
"download": "download",
|
||||||
|
"share": "share",
|
||||||
|
"copy": "copy",
|
||||||
|
"copied": "copied",
|
||||||
|
"import": "import",
|
||||||
|
"continue": "continue",
|
||||||
|
"star": "star",
|
||||||
|
"follow": "follow"
|
||||||
|
}
|
|
@ -1,15 +1,4 @@
|
||||||
{
|
{
|
||||||
"button.gotit": "got it",
|
|
||||||
"button.cancel": "cancel",
|
|
||||||
"button.reset": "reset",
|
|
||||||
"button.done": "done",
|
|
||||||
"button.downloadAudio": "download audio",
|
|
||||||
"button.download": "download",
|
|
||||||
"button.share": "share",
|
|
||||||
"button.copy": "copy",
|
|
||||||
"button.import": "import",
|
|
||||||
"button.continue": "continue",
|
|
||||||
|
|
||||||
"reset.title": "reset all settings?",
|
"reset.title": "reset all settings?",
|
||||||
"reset.body": "are you sure you want to reset all settings? this action is immediate and irreversible.",
|
"reset.body": "are you sure you want to reset all settings? this action is immediate and irreversible.",
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
bodyText: $t("dialog.reset.body"),
|
bodyText: $t("dialog.reset.body"),
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.cancel"),
|
text: $t("button.cancel"),
|
||||||
main: false,
|
main: false,
|
||||||
action: () => {},
|
action: () => {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.reset"),
|
text: $t("button.reset"),
|
||||||
color: "red",
|
color: "red",
|
||||||
main: true,
|
main: true,
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
click={() => openURL(url)}
|
click={() => openURL(url)}
|
||||||
>
|
>
|
||||||
<IconDownload />
|
<IconDownload />
|
||||||
{$t("dialog.button.download")}
|
{$t("button.download")}
|
||||||
</VerticalActionButton>
|
</VerticalActionButton>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
click={async () => await shareURL(url)}
|
click={async () => await shareURL(url)}
|
||||||
>
|
>
|
||||||
<IconShare2 />
|
<IconShare2 />
|
||||||
{$t("dialog.button.share")}
|
{$t("button.share")}
|
||||||
</VerticalActionButton>
|
</VerticalActionButton>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
@ -77,10 +77,10 @@
|
||||||
copyURL(url);
|
copyURL(url);
|
||||||
copied = true;
|
copied = true;
|
||||||
}}
|
}}
|
||||||
ariaLabel={copied ? $t("a11y.dialog.saving.copied") : ""}
|
ariaLabel={copied ? $t("button.copied") : ""}
|
||||||
>
|
>
|
||||||
<CopyIcon check={copied} />
|
<CopyIcon check={copied} />
|
||||||
{$t("dialog.button.copy")}
|
{$t("button.copy")}
|
||||||
</VerticalActionButton>
|
</VerticalActionButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
<DialogButtons
|
<DialogButtons
|
||||||
buttons={[
|
buttons={[
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.done"),
|
text: $t("button.done"),
|
||||||
main: true,
|
main: true,
|
||||||
action: () => {},
|
action: () => {},
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
copyURL(cobaltUrl);
|
copyURL(cobaltUrl);
|
||||||
copied = true;
|
copied = true;
|
||||||
}}
|
}}
|
||||||
aria-label={copied ? $t("a11y.dialog.saving.copied") : ""}
|
aria-label={copied ? $t("button.copied") : ""}
|
||||||
>
|
>
|
||||||
<div class="share-button-icon">
|
<div class="share-button-icon">
|
||||||
<CopyIcon check={copied} />
|
<CopyIcon check={copied} />
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
meowbalt: "error",
|
meowbalt: "error",
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.gotit"),
|
text: $t("button.gotit"),
|
||||||
main: true,
|
main: true,
|
||||||
action: () => {},
|
action: () => {},
|
||||||
},
|
},
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
changeDownloadButton("done");
|
changeDownloadButton("done");
|
||||||
const buttons = [
|
const buttons = [
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.done"),
|
text: $t("button.done"),
|
||||||
main: true,
|
main: true,
|
||||||
action: () => {},
|
action: () => {},
|
||||||
},
|
},
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
if (response.audio) {
|
if (response.audio) {
|
||||||
const pickerAudio = response.audio;
|
const pickerAudio = response.audio;
|
||||||
buttons.unshift({
|
buttons.unshift({
|
||||||
text: $t("dialog.button.downloadAudio"),
|
text: $t("button.download_audio"),
|
||||||
main: false,
|
main: false,
|
||||||
action: () => {
|
action: () => {
|
||||||
downloadFile(pickerAudio);
|
downloadFile(pickerAudio);
|
||||||
|
|
|
@ -30,12 +30,12 @@
|
||||||
bodyText: $t("dialog.import.body"),
|
bodyText: $t("dialog.import.body"),
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.cancel"),
|
text: $t("button.cancel"),
|
||||||
main: false,
|
main: false,
|
||||||
action: () => {},
|
action: () => {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.import"),
|
text: $t("button.import"),
|
||||||
color: "red",
|
color: "red",
|
||||||
main: true,
|
main: true,
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
bodyText: message,
|
bodyText: message,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: $t("dialog.button.gotit"),
|
text: $t("button.gotit"),
|
||||||
main: true,
|
main: true,
|
||||||
action: () => {},
|
action: () => {},
|
||||||
},
|
},
|
||||||
|
|
|
@ -51,7 +51,7 @@ const request = async (url: string) => {
|
||||||
dismissable: false,
|
dismissable: false,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: get(t)("dialog.button.cancel"),
|
text: get(t)("button.cancel"),
|
||||||
main: false,
|
main: false,
|
||||||
action: () => {
|
action: () => {
|
||||||
_actions.reject();
|
_actions.reject();
|
||||||
|
@ -63,7 +63,7 @@ const request = async (url: string) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: get(t)("dialog.button.continue"),
|
text: get(t)("button.continue"),
|
||||||
color: "red",
|
color: "red",
|
||||||
main: true,
|
main: true,
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
|
|
Loading…
Reference in a new issue