Skip to content

Commit

Permalink
fix: Minor translation fixes (#39)
Browse files Browse the repository at this point in the history
* fix: missing Spanish translation for China

* fix: Prevent typesafe-i18n from watching for files in deploy.yml

* fix: minor string updates
  • Loading branch information
fmaclen committed May 29, 2023
1 parent d430e37 commit 5ded2d3
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Generate i18n files
run: npx typesafe-i18n
- name: Generate typesafe-i18n files
run: npx typesafe-i18n --no-watch

- name: Semantic Release
id: release
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ const en = {
}
},
components: {
startTime: 'Monday 9:00am',
loading: 'Loading',
buttons: {
goBack: 'Go back',
Expand Down
44 changes: 22 additions & 22 deletions src/i18n/es/atlases/china.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
export const china = {
city: 'Beijing',
city: 'Pekín',
descriptions: [
'Beijing, the capital of China, is one of the most populous cities in the world, with a population of over 21 million people.',
'Surrounded by mountains that protect it from the cold Siberian winds, Beijing is a city rich in history and culture.',
'Welcome to Beijing, the cultural, educational, and political heart of China. The city is known for its opulent palaces, temples, and enormous stone walls and gates.'
'Pekín, la capital de China, es una de las ciudades más pobladas del mundo, con una población de más de 21 millones de personas.',
'Rodeada de montañas que la protegen de los fríos vientos siberianos, Pekín es una ciudad rica en historia y cultura.',
'Bienvenido a Pekín, el corazón cultural, educativo y político de China. La ciudad es conocida por sus opulentos palacios, templos y enormes murallas y puertas de piedra.'
],
sights: [
'the Great Wall of China',
'The Yellow Mountains',
'the Yangtze River',
"The Terracotta Army in Xi'an",
'The Potala Palace in Tibet'
'la Gran Muralla China',
'Las Montañas Amarillas',
'el Río Yangtsé',
"El Ejército de Terracota en Xi'an",
'El Palacio de Potala en el Tíbet'
],
objects: [
'a traditional Chinese fan',
'a jade sculpture',
'a bottle of Maotai liquor',
'a piece of silk fabric',
'a Chinese lantern'
'un abanico tradicional chino',
'una escultura de jade',
'una botella de licor Maotai',
'una pieza de tela de seda',
'una linterna china'
],
topics: [
'the history of the Chinese dynasties',
'the biodiversity of the Yangshuo countryside',
'the traditional tea culture',
'the martial art of Kung Fu',
'the development of calligraphy'
'la historia de las dinastías chinas',
'la biodiversidad del campo de Yangshuo',
'la cultura tradicional del té',
'el arte marcial del Kung Fu',
'el desarrollo de la caligrafía'
],
currency: 'yuan',
leader: 'party chairman',
flag: 'a red flag with five golden stars',
language: 'Chinese'
leader: 'presidente del partido',
flag: 'una bandera roja con cinco estrellas doradas',
language: 'chino'
};
1 change: 1 addition & 0 deletions src/i18n/es/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ const es = {
}
},
components: {
startTime: 'Lunes 9:00am',
loading: 'Cargando',
buttons: {
goBack: 'Volver',
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/Time.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script lang="ts">
import LL from '$i18n/i18n-svelte';
import { fly, fade } from 'svelte/transition';
export let currentTime: string = 'Monday 9:00am';
export let currentTime: string = $LL.components.startTime();
export let isClockTicking: boolean = false;
</script>

Expand Down
3 changes: 1 addition & 2 deletions src/routes/headquarters/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
let linesKnownPlayer: TerminalLine[] = [];
let linesNewsFlash: TerminalLine[] = [];
let linesAssignment: TerminalLine[] = [];
let lastTerminal: HTMLElement;
if ($playerStore && $gameStore) {
step = Step.KNOWN_PLAYER;
Expand Down Expand Up @@ -137,7 +136,7 @@
class="input"
type="text"
name="name"
placeholder="Sleazy McSleazebag"
placeholder="Dexter Colt"
disabled={step !== Step.UNKNOWN_PLAYER}
bind:value={playerName}
/>
Expand Down

0 comments on commit 5ded2d3

Please sign in to comment.