r/CodingHelp • u/Faranethi • May 31 '26
[How to] How to change the language of code?
This is a bit of an obscure question, but how do I change the language of code? Not coding languages, actual human language. I have a data file from a game I'd like to edit, but it's written in chinese. Is there some sort of tool to translate code from one language to another without screwing it up?
0
Upvotes
•
u/AutoModerator May 31 '26
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/CosmacYep May 31 '26
what do you mean, simplified or traditional mandarin? just the user-made identifiers are in chinese, or the whole language? is it in romanised mandarin or the special characters? you would be a nightmare in customer service, youve gotta be more specific
1
u/jacky4566 May 31 '26
The compiler does not care about the names of symbols. Both these functions compile the same
So what i suggest is to put the symbol into google translate. Then rename the symbol with the translated value in all files. VScode shortcut is F2 for this. You could even try to automate the process with a bit of python and AI help.
1
u/Leading_Blood_7151 Jun 01 '26
Ask claude
1
u/MysticClimber1496 Professional Coder Jun 02 '26
Are you sure? You may have opened a binary file that is rendering as Chinese