Add en-US translations
This commit is contained in:
parent
31b92da6ce
commit
bd01a35cc6
45 changed files with 539 additions and 158 deletions
|
@ -13,7 +13,6 @@ export const EntrySceneName = "EntryScene";
|
|||
* and to route to the next correct scene.
|
||||
*/
|
||||
export class EntryScene extends Scene {
|
||||
|
||||
constructor() {
|
||||
super({
|
||||
key: EntrySceneName,
|
||||
|
@ -48,20 +47,20 @@ export class EntryScene extends Scene {
|
|||
if (err.response && err.response.status == 404) {
|
||||
ErrorScene.showError(
|
||||
new WAError(
|
||||
"Access link incorrect",
|
||||
"Could not find map. Please check your access link.",
|
||||
"If you want more information, you may contact administrator or contact us at: hello@workadventu.re"
|
||||
translator._("error.access-link.title"),
|
||||
translator._("error.access-link.sub-title"),
|
||||
translator._("error.access-link.details")
|
||||
),
|
||||
this.scene
|
||||
);
|
||||
} else if (err.response && err.response.status == 403) {
|
||||
ErrorScene.showError(
|
||||
new WAError(
|
||||
"Connection rejected",
|
||||
"You cannot join the World. Try again later" +
|
||||
(err.response.data ? ". \n\r \n\r" + `${err.response.data}` : "") +
|
||||
".",
|
||||
"If you want more information, you may contact administrator or contact us at: hello@workadventu.re"
|
||||
translator._("error.connection-rejected.title"),
|
||||
translator._("error.connection-rejected.sub-title", {
|
||||
error: err.response.data ? ". \n\r \n\r" + `${err.response.data}` : "",
|
||||
}),
|
||||
translator._("error.connection-rejected.details")
|
||||
),
|
||||
this.scene
|
||||
);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { translator } from "../../Translator/Translator";
|
||||
import { TextField } from "../Components/TextField";
|
||||
import Image = Phaser.GameObjects.Image;
|
||||
import Sprite = Phaser.GameObjects.Sprite;
|
||||
|
@ -38,7 +39,7 @@ export class ReconnectingScene extends Phaser.Scene {
|
|||
this,
|
||||
this.game.renderer.width / 2,
|
||||
this.game.renderer.height / 2,
|
||||
"Connection lost. Reconnecting..."
|
||||
translator._("connection-lost")
|
||||
);
|
||||
|
||||
const cat = this.add.sprite(this.game.renderer.width / 2, this.game.renderer.height / 2 - 32, "cat");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue