Dynamic Client Localization System
Welcome to the Dynamic Client Localization System, DCLS.
Inspired by Arma 3’s localization system and seeing an accessibility issue with how many FiveM resources handle localization, I created DCLS. A simple and easy-to-edit system that solves a common problem within localization in the FiveM resource ecosystem, which I like to call the “global language problem”.
“Global Language Problem - When a software provides localization but forces all users to use the same language, regardless of a user’s choice or preference.”
Many community resources include localization systems, but these resources all have a common flaw, the servers decide what language gets displayed, not the players. DCLS solves this issue by putting the player in charge of their localization, using the already provided language option in GTA V.
With DCLS, your resources and systems will be accessible to players worldwide in the 13 different languages supported in GTA V, including English, French, German, Italian, Spanish, Korean, Japanese, Chinese, Russian, Polish, Portuguese, and Brazilian Portuguese. All done while respecting the language choice of all players through the in-game language option.
Only the languages available in GTA V are supported
Links
GitHub Repository
Documentation
Direct Download (Latest Version)
Why use DCLS
The main problem solved is accessibility, as every player is different.
Some may want to play in their preferred language rather than the language set by the server. DCLS gives them the option to play in any of the supported languages — translation permitting — allowing them to enjoy the game the way they want to play.
How does DCLS work
DCLS is very simple, inspired by Arma 3’s localization system.
Each resource has a string table file in the DCLS language resource. This file contains all the strings the resource displays to players, each assigned a unique localization key.
When you need to display some text, use the localize
export provided by DCLS with the text’s corresponding localization key. The export will return the localized version of the text based on the player’s selected language.
Basic Guide
An in-depth guide is available in the system documentation
-
Create a string table file in the DCLS language resource for your resource.
-
Enter all the strings that players will see from the resource.
-
When you need to display text to a player, use the
localize
export with the corresponding localization key to get the localized text. -
Display the localized text to the player.
Important: When sending text between two clients or the server, never assume a client’s language. Send the client the localization key for the text and allow the client to localize it locally.
Limitations
Because DCLS uses the internal game option to determine the player’s language, only the languages available in GTA V are supported.