๐Locales
Enhance your FiveM experience by localizing the Collectibles script! This GitHub repository provides translations for the script, and you can contribute by adding new languages or fixing existing ones
Follow these simple steps to contribute translations or create new ones for the Collectibles script in FiveM. ๐ ๏ธ
Step 1: Access the GitHub Repository
๐ Visit the GitHub repository: GitHub Locales Repository
Step 2: Add a New Locale
๐ Create a New Language File
๐ Navigate to the
locales
folder in the repository.โ Create a new
.lua
file named after the desired language code (e.g.,de.lua
for German).โ๏ธ Add your translations to the file. For example:
Locales['de'] = { languageName = 'Deutsch', Notifications = { playerCollectedPickup = 'Du hast %s Gegenstรคnde von %s eingesammelt', }, }
โ Save your changes.
Step 3: Edit Existing Locales
๐ Fix or Update Translations
Locate the
.lua
file for the language you want to edit.Open it and make your changes while keeping the structure consistent.
Test your updates in-game to ensure everything works.
Step 4: Contribute Changes via GitHub
๐ค Submit Your Changes
Fork the Repository:
Create a copy of the repository in your GitHub account.
Clone It Locally:
git clone https://github.com/your-username/your-fork.git
Make Changes: Add or edit the
.lua
files in thelocales
folder.Push Changes:
git add . git commit -m "Added/Updated translations for [language]" git push origin main
Submit a Pull Request: Navigate to the original repository and open a Pull Request with a clear description of your contributions.
Step 5: Test and Use Your Locales
๐ Apply Changes
Add the updated or new locale file to your server's
resources
directory.Restart your server to load the changes.
๐ฎ In-Game Experience: Players will see the new language option automatically in the UI, making the script accessible in their native language.
Quick Reference
Action
Steps
Add a new locale
Create a .lua
file in the locales
folder and add translations.
Edit an existing locale
Update the corresponding .lua
file and test changes.
Contribute to GitHub
Fork, edit, and submit a Pull Request.
Test on your server
Add the file to your server and restart it.
๐ Why Contribute?
Inclusivity: Make the script accessible to players worldwide.
Customization: Tailor the experience to your community's needs.
Collaboration: Join a growing community of contributors!
If you have questions or feedback, feel free to open an issue in the repository. โค๏ธ
Last updated