当前位置:网站首页>Ueeditor internationalization configuration, supporting Chinese and English switching
Ueeditor internationalization configuration, supporting Chinese and English switching
2022-07-06 10:17:00 【CHQIUU】
UEditor At present, it supports Chinese and English . Which language needs to be used to directly load the response js that will do
As shown in the figure below
load lang/en/en.js Show English after
load lang/zh-cn/zh-cn.js Chinese is displayed after

Here is JSP and FreeMarker There are two ways to realize automatic switching of page internationalization .
FreeMarker Page configuration
<#if language=='EN'>
<script type="text/javascript" charset="utf-8" src="${contextPath}/static/ueditor/lang/en/en.js"></script>
<#else>
<script type="text/javascript" charset="utf-8" src="${contextPath}/static/ueditor/lang/zh-cn/zh-cn.js"></script>
</#if>
JSP Page configuration
<%if ("EN".equals(language)){
%>
<script type="text/javascript" charset="utf-8" src="<%=contextPath%>/static/ueditor/lang/en/en.js"></script>
<%} else {
%>
<script type="text/javascript" charset="utf-8" src="<%=contextPath%>/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<%} %>
The following is the renderings :
边栏推荐
- Competition vscode Configuration Guide
- If someone asks you about the consistency of database cache, send this article directly to him
- 软件测试工程师必备之软技能:结构化思维
- [CV] target detection: derivation of common terms and map evaluation indicators
- 如何让shell脚本变成可执行文件
- Zsh configuration file
- Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
- Typescript入门教程(B站黑马程序员)
- Jar runs with error no main manifest attribute
- Delayed note learning
猜你喜欢

C杂讲 双向循环链表

Automation sequences of canoe simulation functions

14 医疗挂号系统_【阿里云OSS、用户认证与就诊人】

What should the redis cluster solution do? What are the plans?

Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)

AI的路线和资源

docker MySQL解决时区问题
![[after reading the series] how to realize app automation without programming (automatically start Kwai APP)](/img/e1/bad9cfa70d3c533cfaddeee40b96f1.jpg)
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)

MySQL實戰優化高手04 借著更新語句在InnoDB存儲引擎中的執行流程,聊聊binlog是什麼?

112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
随机推荐
max-flow min-cut
Security design verification of API interface: ticket, signature, timestamp
[NLP] bert4vec: a sentence vector generation tool based on pre training
Cmooc Internet + education
The 32-year-old fitness coach turned to a programmer and got an offer of 760000 a year. The experience of this older coder caused heated discussion
颜值爆表,推荐两款JSON可视化工具,配合Swagger使用真香
MySQL combat optimization expert 05 production experience: how to plan the database machine configuration in the real production environment?
13 医疗挂号系统_【 微信登录】
C miscellaneous two-way circular linked list
MySQL实战优化高手05 生产经验:真实生产环境下的数据库机器配置如何规划?
The appearance is popular. Two JSON visualization tools are recommended for use with swagger. It's really fragrant
Use xtrabackup for MySQL database physical backup
在CANoe中通過Panel面板控制Test Module 運行(初級)
MySQL ERROR 1040: Too many connections
Compress decompress
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
[CV] target detection: derivation of common terms and map evaluation indicators
通过bat脚本配置系统环境变量
15 medical registration system_ [appointment registration]
MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?