question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Sugesstion] Add Server Side Language Support

See original GitHub issue

Being able to check through code what language a player is using server side and being able to use lang files for easy mutli lingual support for server side related things like commands could be very beneficial. If a player doesn’t have fabric installed of course there would have to be something to default to so a default_language entry in the fabric.mod.json could be used for that to select what language to default to. For example:

{
  "default_language": "en_us"
}

would default to English.

Having support of this level would allow developers to do a lot more with their server side mods, for example if it could be checked through code server side a mod developer could use that to:

  1. Automatically translate messages from other languages to the language you have selected in your settings.
  2. Add a prefix next to your name with the language you speak so other players know.
  3. Make chat rooms for each language and put you in your selected language by default.

and whatever else they’d like to do with that functionality.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
warjortcommented, Jun 29, 2021

There is a fundamental problem with your proposal.

The translation functionality of minecraft is not available on the dedicated server. i.e. The relevant minecraft classes are not in the server jar shipped by mojang.

Also, the language files themselves are stored in resource packs which never get processed by the server.

1reaction
Patboxcommented, Mar 28, 2022

For server side translations for mods, Server Translation API exists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Programming languages endorsed for server-side use at Meta
Meta's primary supported server-side languages are Hack, C++, Rust, and Python. For performance-sensitive back-end services, we encourage C++ ...
Read more >
Introduction to the server side - Learn web development | MDN
Welcome to the MDN beginner's server-side programming course! ... languages — examples of popular server-side web languages include PHP, ...
Read more >
5 top programming languages to learn server-side web ... - TWM
1. Node.js (JavaScript) · 2. PHP · 3. Java · 4. Ruby · 5. Python.
Read more >
Top 5 Languages to Server-Side Scripting in 2022
Best Programming Languages: What Are They? As above-mentioned, our top 5 most popular server-side programming languages ​​are Java, C#, PHP, ...
Read more >
How can I create my own server-side language? - Quora
There are many good server-side languages. The most popular are PHP, Java, Scala, Python. The fastest-rising is Go. The best for employment opportunities...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found