Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
….org into news
  • Loading branch information
Heinrich-XIAO committed Sep 27, 2024
2 parents 132baf6 + 833632d commit 4066230
Show file tree
Hide file tree
Showing 7 changed files with 619 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/server/utility/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import i18next from "i18next";

const defaultLanguage = 'en-US';
/** Our supported languages (those with a TOML file) will be auto-appended here by {@link loadTranslationsFolder}. */
const supportedLanguages = [];
let supportedLanguages = [];

function getDefaultLanguage() { return defaultLanguage; }
function setSupportedLanguages(list) { supportedLanguages === list; }
function setSupportedLanguages(list) { supportedLanguages = list; }

/**
* Determines the language to be used for serving an HTML file to a request.
Expand Down
1 change: 0 additions & 1 deletion translation/en-US.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ knightrider = {name="Knightrider", description="Hops like a knight infinitely in
obstacle = {name="Obstacle", description="A neutral piece (not controlled by either player) that blocks movement, but can be captured."}
void = {name="Void", description="A neutral piece (not controlled by either player) that represents the absence of board. Pieces may not move through or on top of it."}


[play.play-menu]
title = "Play - Online"
colors = "Colors"
Expand Down
1 change: 0 additions & 1 deletion translation/fr-FR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ knightrider = {name="Le Cavalier Sauteur", description="Saute comme un cavalier
obstacle = {name="Obstacle", description="Une pièce neutre (controlées par aucun des joueurs) qui bloque les mouvements mais peut être capturée."}
void = {name="Vide", description="Une pièce neutre (controlées par aucun des joueurs) qui représente l'absence d'une case sur le plateau. Les pièces ne peuvent se déplacer ni au dessus ni à travers du vide."}


[play.play-menu]
title = "Jouer - En Ligne"
colors = "Couleurs"
Expand Down
1 change: 0 additions & 1 deletion translation/pl-PL.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ knightrider = {name="Jeździec", description="Skacze jak skoczek nieskończenie
obstacle = {name="Blokada", description="Neutralna figura (niekantrolowana przez żadnego z graczy), która blokuje ruch, lecz może być zbita."}
void = {name="Pustka", description="Neutralna figura (niekantrolowana przez żadnego z graczy), która reprezentuje \"dziurę\" w planszy. Figury nie mogą na niej stawać, ani się przez nią poruszać."}


[play.play-menu]
title = "Graj - Online"
colors = "Kolor"
Expand Down
1 change: 0 additions & 1 deletion translation/pt_BR.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ knightrider = {name="Knightrider", description="Pula como um cavalo em uma dire
obstacle = {name="Obstáculo", description="Uma peça neutra (não controlado por nenhum dos jogadores) que bloqueia o movimento, mas pode ser capturado."}
void = {name="Vazio", description="Uma peça neutra (não controlada por nenhum dos jogadores) que representa a ausência do tabuleiro. As peças não podem se mover através dele ou sobre ele."}


[play.play-menu]
title = "Jogar - Online"
colors = "Cores"
Expand Down
5 changes: 1 addition & 4 deletions translation/zh-CN.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "中文" # Name of language
name = "简体中文" # Simplified Chinese - Name of language
direction = "ltr" # Change to "rtl" for right to left languages
version = "15"
maintainer = "Heinrich Xiao"
Expand Down Expand Up @@ -123,8 +123,6 @@ credits = "鸣谢"
play = "开始"
guide = "指南"
editor = "棋盘编辑器"
loading = "加载中"
error = "错误"

[play.guide]
title = "指南"
Expand Down Expand Up @@ -179,7 +177,6 @@ knightrider = {name="骑士骑士", description="像骑士一样在一个方向
obstacle = {name="障碍物", description="一个中立棋子(不由任何玩家控制),阻挡移动,但可以被捕获。"}
void = {name="虚空", description="一个中立棋子(不由任何玩家控制),表示棋盘的缺失。棋子不能穿过或移动到它上面。"}


[play.play-menu]
title = "玩 - 网上"
colors = "颜色"
Expand Down
Loading

0 comments on commit 4066230

Please sign in to comment.