2022-08-19 17:19:08 +00:00
|
|
|
function msglang(english, japanese, language=global.lang) {
|
|
|
|
switch language {
|
2022-08-07 21:14:04 +00:00
|
|
|
case LANGUAGE.ENGLISH:
|
2022-08-19 17:19:08 +00:00
|
|
|
return english;
|
2022-08-07 21:14:04 +00:00
|
|
|
break;
|
|
|
|
case LANGUAGE.JAPANESE:
|
2022-08-19 17:19:08 +00:00
|
|
|
return japanese;
|
2022-08-07 21:14:04 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return [txt()];
|
|
|
|
break;
|
2022-08-19 17:19:08 +00:00
|
|
|
}
|
2022-08-07 21:14:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum LANGUAGE {
|
|
|
|
NULL,
|
|
|
|
ENGLISH,
|
|
|
|
JAPANESE,
|
2022-08-19 17:19:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
global.lang = LANGUAGE.ENGLISH;
|