{"id":16379511,"url":"https://github.com/maxlego08/ztranslator","last_synced_at":"2025-10-26T10:30:50.529Z","repository":{"id":43886040,"uuid":"458783703","full_name":"Maxlego08/zTranslator","owner":"Maxlego08","description":"Allows you to translate item names into a language","archived":false,"fork":false,"pushed_at":"2022-06-16T13:12:56.000Z","size":532,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T18:13:36.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Maxlego08.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-13T11:03:06.000Z","updated_at":"2022-03-16T01:11:05.000Z","dependencies_parsed_at":"2022-08-27T22:30:55.459Z","dependency_job_id":null,"html_url":"https://github.com/Maxlego08/zTranslator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxlego08%2FzTranslator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxlego08%2FzTranslator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxlego08%2FzTranslator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxlego08%2FzTranslator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maxlego08","download_url":"https://codeload.github.com/Maxlego08/zTranslator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238310219,"owners_count":19450821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T03:48:52.346Z","updated_at":"2025-10-26T10:30:50.119Z","avatar_url":"https://github.com/Maxlego08.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zTranslator\n\nThe plugin will allow you to translate the names of minecraft items with your language. You just have to add the lang file of minecraft in the ``zTranslator/langs`` folder and reload the plugin. The file ``bind.json`` will make the link between the item and the translation. Don't hesitate to create an exit if an item is not translated.\n\n## Maven\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n      \u003cid\u003ejitpack.io\u003c/id\u003e\n      \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.Maxlego08\u003c/groupId\u003e\n    \u003cartifactId\u003ezTranslator\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Gradle\n```gradle\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\ndependencies {\n  implementation 'com.github.Maxlego08:zTranslator:1.0.0.0'\n}\n```\n\n## How to translate an ItemStack\n\nYou need to get the Translator class using the spigot service provider.\nHere is an example:\n\n```java\npublic void example(){\n\tTranslator translator = this.getProvider(Translator.class);\n\ttranslator.translate(new ItemStack(Material.STONE));\n}\n\npublic \u003cT\u003e T getProvider(Class\u003cT\u003e classz) {\n  RegisteredServiceProvider\u003cT\u003e provider = getServer().getServicesManager().getRegistration(classz);\n  if (provider == null) {\n    this.getLogger().warning(\"Unable to retrieve the provider \" + classz.toString());\n    return null;\n  }\n  return provider.getProvider() != null ? (T) provider.getProvider() : null;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlego08%2Fztranslator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlego08%2Fztranslator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlego08%2Fztranslator/lists"}