当前位置:网站首页>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 :
边栏推荐
- Some thoughts on the study of 51 single chip microcomputer
- [after reading the series] how to realize app automation without programming (automatically start Kwai APP)
- MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
- 寶塔的安裝和flask項目部署
- 在CANoe中通过Panel面板控制Test Module 运行(初级)
- MySQL combat optimization expert 09 production experience: how to deploy a monitoring system for a database in a production environment?
- 软件测试工程师必备之软技能:结构化思维
- C miscellaneous shallow copy and deep copy
- 四川云教和双师模式
- MySQL combat optimization expert 03 uses a data update process to preliminarily understand the architecture design of InnoDB storage engine
猜你喜欢

C杂讲 文件 续讲

What is the current situation of the game industry in the Internet world?

MySQL实战优化高手02 为了执行SQL语句,你知道MySQL用了什么样的架构设计吗?

15 医疗挂号系统_【预约挂号】

docker MySQL解决时区问题

如何搭建接口自动化测试框架?

C miscellaneous shallow copy and deep copy

Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]

四川云教和双师模式

A necessary soft skill for Software Test Engineers: structured thinking
随机推荐
MySQL底层的逻辑架构
Configure system environment variables through bat script
在CANoe中通过Panel面板控制Test Module 运行(初级)
What should the redis cluster solution do? What are the plans?
Contest3145 - the 37th game of 2021 freshman individual training match_ C: Tour guide
MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
MySQL learning diary (II)
MySQL real battle optimization expert 08 production experience: how to observe the machine performance 360 degrees without dead angle in the process of database pressure test?
[NLP] bert4vec: a sentence vector generation tool based on pre training
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)
Vh6501 Learning Series
MySQL combat optimization expert 04 uses the execution process of update statements in the InnoDB storage engine to talk about what binlog is?
Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions
CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
MySQL实战优化高手09 生产经验:如何为生产环境中的数据库部署监控系统?
oracle sys_ Context() function
MySQL實戰優化高手04 借著更新語句在InnoDB存儲引擎中的執行流程,聊聊binlog是什麼?
Canoe cannot automatically identify serial port number? Then encapsulate a DLL so that it must work
The governor of New Jersey signed seven bills to improve gun safety
Tianmu MVC audit II