Git Product home page Git Product logo

neatlogic / i18nhelper-idea Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.77 MB

Automatically replace the i18n key value for the back-end code, and complete the automatic translation, require the language file to be managed in json, and Spring6 needs to modify the ReloadableResourceBundleMessageSource to make the language file support the json format.

License: GNU General Public License v3.0

Java 100.00%

i18nhelper-idea's Introduction

JetBrains plugins


Features 功能

Automatically convert selected text to a key in i18n. If the Chinese text does not exist, it will automatically write the key and text content into the corresponding i18n configuration file, and complete the target language translation.


自动转换选中文本为i18n中的key,如果中文不存在,则自动往对应的i18n配置文件中写入key和文本内容,并完成目标语言翻译。

Requirements 使用要求

This plugin requires that the i18n language file is in json format, for example:

language_zh.json:

{
    "common":{
        "name":"name",
        "age":"age"
    }
}

本插件要求i18n语言文件是json格式,例如

language_zh.json:

{
    "common":{
        "name":"名称",
        "age":"年龄"
    }
}

Usage 使用方式

Edit the language file path 编辑语言文件路径

img.png

Configure shortcut keys 配置快捷键

img_1.png

Select text and replace 选中文本并替换

Select any text in the editor, use the shortcut key to complete the replacement. If the key does not exist, you need to input a new key.


在编辑器中选中任意文本,使用快捷键即可完成替换,如果key不存在,需要输入新的key

img.png

Switch current language 切换当前语言

img.png

i18nhelper-idea's People

Contributors

zenkiray avatar actions-user avatar

Stargazers

 avatar

Watchers

lvzk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.