当前位置:网站首页>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 :
边栏推荐
- Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
- 15 medical registration system_ [appointment registration]
- 14 医疗挂号系统_【阿里云OSS、用户认证与就诊人】
- MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?
- Competition vscode Configuration Guide
- MySQL实战优化高手04 借着更新语句在InnoDB存储引擎中的执行流程,聊聊binlog是什么?
- [Julia] exit notes - Serial
- Software test engineer development planning route
- MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
- Automation sequences of canoe simulation functions
猜你喜欢

Not registered via @enableconfigurationproperties, marked (@configurationproperties use)

Southwest University: Hu hang - Analysis on learning behavior and learning effect

Jar runs with error no main manifest attribute

16 医疗挂号系统_【预约下单】

A necessary soft skill for Software Test Engineers: structured thinking

C miscellaneous shallow copy and deep copy

Installation of pagoda and deployment of flask project
![[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)

宝塔的安装和flask项目部署

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
随机推荐
安装OpenCV时遇到的几种错误
A necessary soft skill for Software Test Engineers: structured thinking
16 医疗挂号系统_【预约下单】
MySQL learning diary (II)
jar运行报错no main manifest attribute
Security design verification of API interface: ticket, signature, timestamp
16 medical registration system_ [order by appointment]
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位
Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
Canoe CAPL file operation directory collection
Inject common SQL statement collation
MySQL combat optimization expert 07 production experience: how to conduct 360 degree dead angle pressure test on the database in the production environment?
实现微信公众号H5消息推送的超级详细步骤
The underlying logical architecture of MySQL
The programming ranking list came out in February. Is the result as you expected?
Control the operation of the test module through the panel in canoe (Advanced)
Control the operation of the test module through the panel in canoe (primary)
Tianmu MVC audit II