Vertex-Client / Vertex-Client-PE

Vertex Client PE - A Hacked Client for MCPE
https://vertexclient.net
Other
95 stars 54 forks source link

Add internationalization feature #61

Closed Astro36 closed 6 years ago

Astro36 commented 6 years ago

Success for testing i18n function.

Thanks for testing i18n function: NenkaLabnenka@naver.com, and ManDongIboomingsky@naver.com

I need help please!

There're too many strings be translated on vertex client.

You can find the string, cover the i18n function and add the string in en.json file. such as:

.js

print("Hello World"); -> print(i18n("Hello World"));

.json

{
    "Hello World": "Hello World"
}

If the string has variables:

var name = "steve";
var location = "github";
i18n("Hello %0, Welcome to %1", [name, location]);

ko.json is a test file for checking the i18n works well.

Astro36 commented 6 years ago

My mistake, sorry