当前位置:网站首页>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 :
边栏推荐
- C miscellaneous lecture continued
- docker MySQL解决时区问题
- 使用OVF Tool工具从Esxi 6.7中导出虚拟机
- CDC: the outbreak of Listeria monocytogenes in the United States is related to ice cream products
- MySQL實戰優化高手08 生產經驗:在數據庫的壓測過程中,如何360度無死角觀察機器性能?
- 实现微信公众号H5消息推送的超级详细步骤
- Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
- Installation of pagoda and deployment of flask project
- Listen to my advice and learn according to this embedded curriculum content and curriculum system
- Control the operation of the test module through the panel in canoe (Advanced)
猜你喜欢

Use xtrabackup for MySQL database physical backup

西南大学:胡航-关于学习行为和学习效果分析

软件测试工程师必备之软技能:结构化思维

Installation of pagoda and deployment of flask project

C杂讲 双向循环链表

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

CAPL script pair High level operation of INI configuration file
![[NLP] bert4vec: a sentence vector generation tool based on pre training](/img/fd/8e5e1577b4a6ccc06e29350a1113ed.jpg)
[NLP] bert4vec: a sentence vector generation tool based on pre training

颜值爆表,推荐两款JSON可视化工具,配合Swagger使用真香
![[Julia] exit notes - Serial](/img/d0/87f0d57ff910a666fbb67c0ae8a838.jpg)
[Julia] exit notes - Serial
随机推荐
MySQL实战优化高手10 生产经验:如何为数据库的监控系统部署可视化报表系统?
Compress decompress
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
软件测试工程师必备之软技能:结构化思维
实现以form-data参数发送post请求
在CANoe中通過Panel面板控制Test Module 運行(初級)
South China Technology stack cnn+bilstm+attention
MySQL Real Time Optimization Master 04 discute de ce qu'est binlog en mettant à jour le processus d'exécution des déclarations dans le moteur de stockage InnoDB.
15 医疗挂号系统_【预约挂号】
13 医疗挂号系统_【 微信登录】
Some thoughts on the study of 51 single chip microcomputer
MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位
Competition vscode Configuration Guide
MySQL的存储引擎
Vh6501 Learning Series
How to make shell script executable
Implement context manager through with
Not registered via @EnableConfigurationProperties, marked(@ConfigurationProperties的使用)
Target detection -- yolov2 paper intensive reading
MySQL combat optimization expert 09 production experience: how to deploy a monitoring system for a database in a production environment?