diff options
| author | Fuwn <[email protected]> | 2024-02-12 09:24:40 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-12 09:24:40 -0800 |
| commit | a737a7483d77a1a61cb0303a75697a09c157da71 (patch) | |
| tree | fcebad9d6f2a923cde7b7ab20938160c2223c90c | |
| parent | feat(settings): settings sync category (diff) | |
| download | due.moe-a737a7483d77a1a61cb0303a75697a09c157da71.tar.xz due.moe-a737a7483d77a1a61cb0303a75697a09c157da71.zip | |
feat(settings): localise settings sync
| -rw-r--r-- | src/lib/Locale/english.ts | 13 | ||||
| -rw-r--r-- | src/lib/Locale/japanese.ts | 13 | ||||
| -rw-r--r-- | src/lib/Locale/layout.ts | 11 | ||||
| -rw-r--r-- | src/routes/settings/+page.svelte | 10 |
4 files changed, 40 insertions, 7 deletions
diff --git a/src/lib/Locale/english.ts b/src/lib/Locale/english.ts index c12187fe..831018a7 100644 --- a/src/lib/Locale/english.ts +++ b/src/lib/Locale/english.ts @@ -140,7 +140,18 @@ const English: Locale = { japanese: 'Japanese' }, settingsSync: { - title: 'Settings Sync' + title: 'Settings Sync', + buttons: { + pull: { + title: 'Pull Remote Configuration', + hint: 'Enable settings sync and overwrite any local settings with your remote configuration' + }, + push: { + title: 'Push Local Configuration', + hint: 'Enable settings sync and overwrite any remote configuration with your local settings' + }, + disable: 'Disable & Keep Local Configuration' + } } }, user: { diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts index 33d4dc01..07bff6b9 100644 --- a/src/lib/Locale/japanese.ts +++ b/src/lib/Locale/japanese.ts @@ -141,7 +141,18 @@ const Japanese: Locale = { japanese: '日本語' }, settingsSync: { - title: 'クロスプラットフォーム設定同期' + title: 'クロスプラットフォーム設定同期', + buttons: { + pull: { + title: 'リモート設定をプル', + hint: '設定同期を有効にして、ローカル設定をリモート設定で上書きします' + }, + push: { + title: 'ローカル設定をプッシュ', + hint: '設定同期を有効にして、リモート設定をローカル設定で上書きします' + }, + disable: '設定の同期を無効にし、ローカル設定を保持する' + } } }, user: { diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts index ce78d6db..2f48f0a1 100644 --- a/src/lib/Locale/layout.ts +++ b/src/lib/Locale/layout.ts @@ -143,6 +143,17 @@ export interface Locale { }; settingsSync: { title: LocaleValue; + buttons: { + pull: { + title: LocaleValue; + hint: LocaleValue; + }; + push: { + title: LocaleValue; + hint: LocaleValue; + }; + disable: LocaleValue; + }; }; }; user: { diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index f45fa5cd..b682cb39 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -103,10 +103,10 @@ }); }} > - Pull Remote Configuration + {$locale().settings.settingsSync.buttons.pull.title} </button> <SettingHint lineBreak> - Enable settings sync and overwrite any local settings with your remote configuration + {$locale().settings.settingsSync.buttons.pull.hint} </SettingHint> <p /> <button @@ -127,10 +127,10 @@ }); }} > - Push Local Configuration + {$locale().settings.settingsSync.buttons.push.title} </button> <SettingHint lineBreak> - Enable settings sync and overwrite any remote configuration with your local settings + {$locale().settings.settingsSync.buttons.push.hint} </SettingHint> {:else} <button @@ -144,7 +144,7 @@ ); }} > - Disable & Keep Local Configuration + {$locale().settings.settingsSync.buttons.disable} </button> {/if} </Category> |