Skip to content

Commit

Permalink
Coming soon label for Chinese.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Oct 31, 2023
1 parent 6e138a3 commit 3446484
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 5,403 deletions.
15 changes: 15 additions & 0 deletions src/components/settings/LocaleChooser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
getLocaleLanguage,
type SupportedLocale,
getLocaleLanguageName,
EventuallySupportedLocales,
} from '../../locale/Locale';
import Link from '../app/Link.svelte';
import concretize from '../../locale/concretize';
Expand Down Expand Up @@ -99,6 +100,20 @@
{:else}—
{/each}
</div>
<h2
>{concretize(
$locales,
$locales.get((l) => l.ui.dialog.locale.subheader.coming)
).toText()}</h2>

{#if EventuallySupportedLocales.length > 0}
{#each EventuallySupportedLocales as supported}
<div class="option">
<LocaleName locale={supported} supported={false}/>
</div>
{/each}
{/if}

<h2
><Link
external
Expand Down
2 changes: 1 addition & 1 deletion src/locale/Locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type Locales from './Locales';
import type { GalleryTexts } from './GalleryTexts';

/** A list of locales that are in progress but not supported yet. Only added when developing locally. */
const EventuallySupportedLocales = ['zh-CN'];
export const EventuallySupportedLocales = ['zh-CN'];

/** A list of locales officially supported by Wordplay. */
export const SupportedLocales = [
Expand Down
2 changes: 2 additions & 0 deletions src/locale/UITexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ type UITexts = {
selected: string;
/** How to label the supported locales that have not been selected */
supported: string;
/** How to label locales that are coming soon */
coming: string;
/** How to request help with localization */
help: string;
};
Expand Down
3 changes: 2 additions & 1 deletion src/locale/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -4032,6 +4032,7 @@
"subheader": {
"selected": "Selected",
"supported": "Available",
"coming": "Coming Soon",
"help": "Help us translate …"
},
"button": {
Expand Down Expand Up @@ -4116,7 +4117,7 @@
"landing": {
"call": ["Hi! Want to bring words to life with us? 😊"],
"beta": [
"Wordplay is in *beta*. That means that functionality might change or not work as intended.",
"Wordplay is in *beta*. That means that functionality might change or not work as intended, and localizations might be incomplete.",
"But it also means we want your feedback! Report bugs and share ideas in <Discord@https://discord.gg/Jh2Qq9husy>, or <GitHub@https://github.com/wordplaydev/wordplay/issues>. See our <1.0 plans@https://github.com/wordplaydev/wordplay/milestones/1.0> and <contribute@https://github.com/wordplaydev/wordplay/wiki/contribute> if you can!"
],
"link": {
Expand Down
5,343 changes: 0 additions & 5,343 deletions static/locales/es-MX/es-MX-tutorial.json

This file was deleted.

1 change: 1 addition & 0 deletions static/locales/es-MX/es-MX.json
Original file line number Diff line number Diff line change
Expand Up @@ -4398,6 +4398,7 @@
"subheader": {
"selected": "Seleccionado",
"supported": "Disponible",
"coming": "Muy pronto",
"help": "Ayúdanos a traducir …"
},
"button": {
Expand Down
1 change: 1 addition & 0 deletions static/locales/zh-CN/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,7 @@
"subheader": {
"selected": "$?",
"supported": "$?",
"coming": "即將推出",
"help": "$?"
},
"button": {
Expand Down
121 changes: 63 additions & 58 deletions static/schemas/Locale.json

Large diffs are not rendered by default.

0 comments on commit 3446484

Please sign in to comment.