How to translate in-game panel

Overview

  • This guide will walk you through the process of defining translations for the in-game panel. (/jailcp)

Guide:

  • To define modify current translations, you need to edit the config.js file located at rcore_prison/modules/nui/web/build/config.js

  1. Open the Configuration File

    • Navigate to the directory where the config.js file is located: rcore_prison/modules/nui/web/build/.

    • Open config.js in a text editor of your choice.

  2. Locate the Translation Section

    • Inside the config.js file, find the section where translations are defined. It typically looks like this:

const TRANSLATIONS = {
	PAGES_PRISONER_ACCOUNT: {
		HOME: 'Home',
		TRANSACTIONS: 'Transactions',
	},

	DIALOG: {
		CONFIRM: 'Confirm',
		CANCEL: 'Cancel',
	},

	REGISTER_PRISONER_ACCOUNT: {
		TITLE: 'Do you want to create prison account?',
		DESC: 'Select your option',
		CREATE_ACCOUNT: 'Create Account',
		EXIT: 'Exit',
	},
  1. Start translating in-game panel

    • Now you can translating panel to your desired language, translate right side not left side which is key!

Last updated