🌐Translation

In this section, we'll explore the translation options available.

Step 1: Find the "language.json" file by navigating to web/build/language.json.

Step 2: Use OPENAI (https://chat.openai.com/).

Step 3: Copy the following code:

{
    "spawn_manager_title" :"Welcome",
    "spawn_manager_desc" :"",
    "spawn_at_location": "SPAWN AT LOCATION",
    "spawn_at_last_location": "SPAWN AT LAST LOCATION",
    "point_edit": "Edit",
    "point_delete": "Delete",
    "point_add": "Add Spawn",
    "button_add": "Add Spawn +",
    "modal_create_title": "Create",
    "modal_create_add": "Create",
    "modal_create_desc": "Create a spawning point",
    "modal_update_title": "Update",
    "modal_update_add": "Update",
    "modal_update_desc": "Update a spawning point",
    "modal_select_gang": "Select a gang",
    "modal_add_gang": "Add Gang",
    "modal_select_job": "Select a job",
    "modal_street_name": "Street Name:",
    "modal_street_placeholder": "Write Street name...", 
    "modal_street_vector": "Vector3:",
    "modal_image": "Image URL",
    "modal_area_name": "Area Name:",
    "modal_area_placeholder": "Write Area name ...",
    "modal_description_placeholder": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias ea eius consequatur libero sit non eos aut, ratione nostrum iusto itaque similique quidem magnam voluptatum?",
    "button_spawn_arpartment": "Spawn Apartment",
    "apartment_title" : "Apartment",
    "apartment_select_default": "Choose your apartment to spawn",
    "housing_title" : "Houses",
    "housing_select_default": "Choose your house to spawn",
    "button_spawn_house": "Spawn house",
    "notification_added": "Point successfully added", 
    "notification_point_position_updated": "Point position updated",
    "notification_point_remove": "Point removed",
    "notification_point_updated": "Point data has been updated!",
    "tool_tip_switch": "switch to change mode",
    "tool_tip_hover_color": "To change hover color",
    "tool_tip_color": "To change color",
    "text_logo_top": "GOLD",
    "text_logo_bottom": "CITY",
    "choose_apartment_title": "Choose your Apartment",
    "choose_apartment_desc": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate, excepturi.",
    "choose_apartment_button": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate, excepturi.",
    "choose_apartment_start": "START YOUR ADVENTURE",
    "show_apartment_start": "Show apartment"
}

Step 4: Ask CHATGPT and ask it to provide translations for the values. Once you receive the translations, replace the corresponding values in the code with the translated text.

Step 5: Import this translated code into the language.json file and save it. Step 6: Restart the script and enjoy the new translations for an enhanced user experience!

Last updated

Was this helpful?