๐ŸŒ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

  1. ๐Ÿ“‚ Navigate to the locales folder in the repository.

  2. โž• Create a new .lua file named after the desired language code (e.g., de.lua for German).

  3. โœ๏ธ Add your translations to the file. For example:

    Locales['de'] = {
        languageName = 'Deutsch',
        Notifications = {
            playerCollectedPickup = 'Du hast %s Gegenstรคnde von %s eingesammelt',
        },
    }
  4. โœ… Save your changes.


Step 3: Edit Existing Locales

๐Ÿ“ Fix or Update Translations

  1. Locate the .lua file for the language you want to edit.

  2. Open it and make your changes while keeping the structure consistent.

  3. Test your updates in-game to ensure everything works.


Step 4: Contribute Changes via GitHub

๐Ÿค Submit Your Changes

  1. Fork the Repository:

    • Create a copy of the repository in your GitHub account.

  2. Clone It Locally:

    git clone https://github.com/your-username/your-fork.git
  3. Make Changes: Add or edit the .lua files in the locales folder.

  4. Push Changes:

    git add .
    git commit -m "Added/Updated translations for [language]"
    git push origin main
  5. 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

  1. Add the updated or new locale file to your server's resources directory.

  2. 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