Updated locale-data dependency

This commit is contained in:
Dylan K. Taylor 2021-12-14 00:31:44 +00:00
parent 89a766b799
commit c334e6dec7
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
4 changed files with 15 additions and 8 deletions

View File

@ -41,7 +41,7 @@
"pocketmine/classloader": "^0.2.0",
"pocketmine/color": "^0.2.0",
"pocketmine/errorhandler": "^0.3.0",
"pocketmine/locale-data": "^2.0.16",
"pocketmine/locale-data": "^2.1.0",
"pocketmine/log": "^0.4.0",
"pocketmine/log-pthreads": "^0.4.0",
"pocketmine/math": "^0.4.0",

14
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "b515e7eebbf12a6251d2df817ce56dbc",
"content-hash": "6a1fde030a0133e4ff23047afab5727e",
"packages": [
{
"name": "adhocore/json-comment",
@ -535,16 +535,16 @@
},
{
"name": "pocketmine/locale-data",
"version": "2.0.22",
"version": "2.1.25",
"source": {
"type": "git",
"url": "https://github.com/pmmp/Language.git",
"reference": "181eb9d42653296e65d55a1bbba10e0dd76bbd61"
"reference": "0c810aaa24baffcccd57ca5bca16ca8f346c483c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pmmp/Language/zipball/181eb9d42653296e65d55a1bbba10e0dd76bbd61",
"reference": "181eb9d42653296e65d55a1bbba10e0dd76bbd61",
"url": "https://api.github.com/repos/pmmp/Language/zipball/0c810aaa24baffcccd57ca5bca16ca8f346c483c",
"reference": "0c810aaa24baffcccd57ca5bca16ca8f346c483c",
"shasum": ""
},
"type": "library",
@ -552,9 +552,9 @@
"description": "Language resources used by PocketMine-MP",
"support": {
"issues": "https://github.com/pmmp/Language/issues",
"source": "https://github.com/pmmp/Language/tree/2.0.22"
"source": "https://github.com/pmmp/Language/tree/2.1.25"
},
"time": "2021-12-04T22:37:10+00:00"
"time": "2021-12-14T00:29:11+00:00"
},
{
"name": "pocketmine/log",

View File

@ -917,6 +917,12 @@ final class KnownTranslationFactory{
return new Translatable(KnownTranslationKeys::GAMEMODE_INFO, []);
}
public static function gamemode_options(Translatable|string $param0) : Translatable{
return new Translatable(KnownTranslationKeys::GAMEMODE_OPTIONS, [
0 => $param0,
]);
}
public static function invalid_port() : Translatable{
return new Translatable(KnownTranslationKeys::INVALID_PORT, []);
}

View File

@ -203,6 +203,7 @@ final class KnownTranslationKeys{
public const GAMEMODE_SPECTATOR = "gameMode.spectator";
public const GAMEMODE_SURVIVAL = "gameMode.survival";
public const GAMEMODE_INFO = "gamemode_info";
public const GAMEMODE_OPTIONS = "gamemode_options";
public const INVALID_PORT = "invalid_port";
public const IP_CONFIRM = "ip_confirm";
public const IP_GET = "ip_get";