Skip to content

Commit

Permalink
Have runtime respect project locales.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jun 16, 2024
1 parent e942080 commit 7653407
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http:

- [#106](https://github.com/wordplaydev/wordplay/issues/106). Added ability to translate names and text in a program to other supported languages.
- [#484](https://github.com/wordplaydev/wordplay/issues/484). Cleaned up project locales and translations.
- [#485](https://github.com/wordplaydev/wordplay/issues/485). Have runtime respect project locales.

### Maintenance

Expand Down
2 changes: 1 addition & 1 deletion src/components/output/StageView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
$: context = new RenderContext(
stage.face ?? $locales.getLocale().ui.font.app,
stage.size ?? DefaultSize,
$locales,
project.getLocales(),
$loadedFonts,
$animationFactor,
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/project/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
const newEvaluator = new Evaluator(
newProject,
DB,
$locales,
newProject.getLocales(),
true,
replayInputs ? $evaluator : undefined,
);
Expand Down
1 change: 0 additions & 1 deletion src/components/project/Translate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
<div class="option">
<Button
action={() => translate(supported)}
active={supported !== primaryLocale}
tip={$locales.get((l) => l.ui.dialog.locale.button.replace)}
><LocaleName locale={supported} supported /></Button
>
Expand Down

0 comments on commit 7653407

Please sign in to comment.