An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Display I18N Texts - DisplayI18NTexts.js

Plugin desc : Displays each text replacing a string referred from a JSON file based on the language option.

License : MIT License

Author : nz_prism

Website : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/I18NTexts/js/plugins/DisplayI18NTexts.js

Desc page : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/I18NTexts/js/plugins/DisplayI18NTexts.js

Download Page : https://raw.githubusercontent.com/nz-prism/RPG-Maker-MZ/master/I18NTexts/js/plugins/DisplayI18NTexts.js

File name : DisplayI18NTexts.js

Help of plugin :

* @target MZ
 * @plugindesc Displays each text replacing a string referred from a JSON file based on the language option.
 * @author nz_prism
 * @url https://github.com/nz-prism/RPG-Maker-MZ/blob/master/I18NTexts/js/plugins/DisplayI18NTexts.js
 * @base OptionEx
 * @orderAfter OptionEx
 *
 * @help DisplayI18NTexts.js
 * ver. 1.0.3
 * 
 * [History]
 * 06/04/2023 1.0.0 Released
 * 06/04/2023 1.0.1 Fixed locales (ja-JP=>ja_JP, en-US=>en_US, ru-RU=>ru_RU)
 * 10/02/2023 1.0.2 Fixed an error on a left cursor input at the language
 *                  option.
 * 10/04/2023 1.0.3 Adjusted to OptionEx v1.5.0.
 * 
 * 
 * Displays each text replacing a string referred from a JSON file based on the
 * language option. It requires ”OptionEx” plugin. Place this plugin under
 * OptionEx.
 * 
 * It provides 2 functionalities;
 * 1. Adds a language option.
 * 2. Displays each text replacing a string referred from a JSON file based on
 *    the Language option.
 * 
 * Funcionality 1 adds ”Language” option on the config screen. For Language
 * option, players can choose a language from ones specified for the plugin
 * parameter ”Supported Languages”. The top language of the parameter will be
 * the default one. If single one is specified, the option will not appear on
 * the config screen.
 * 
 * Functionality 2 replaces escape characers ”¥I18N[n]” with corresponding
 * strings referred from a JSON file ”I18NTexts.json”. All the texts in the
 * game, such as names and profiles of actors, names and descriptions of items
 * or messages within events, will be replaced if they includes ”¥I18N[n]”. For
 * I18NTexts.json, it refers a string whose ”id” property meets ”n” of the
 * ¥I18N[n]. The JSON file is generated by another plugin
 * ”ConvertI18NTexts.js”. See the description of the plugin for the detail.
 * Note if I18NTexts.json doesn’t exist in ”data” folder, it will fail.
 * 
 * 
 * This plugin is released under MIT license.
 * https://opensource.org/licenses/mit-license.php
 *
 * 
 * @param supportedLanguages
 * @text Supported Languages
 * @desc Choose supported languages. If single one is chosen, the option will not appear. The top one will be the default.
 * @default [”en_US”,”ja_JP”]
 * @type select[]
 * @option English
 * @value en_US
 * @option Japanese
 * @value ja_JP
 * @option Simplified Chinese
 * @value zh_CN
 * @option Traditional Chinese
 * @value zh_TW
 * @option Korean
 * @value ko_KR
 * @option French
 * @value fr_FR
 * @option Italian
 * @value it_IT
 * @option German
 * @value de_DE
 * @option Spanish
 * @value es_ES
 * @option Portuguese
 * @value pt_BR
 * @option Russian
 * @value ru_RU
 *

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.