【发布时间】:2018-08-10 16:27:35
【问题描述】:
在我的 HTML 页面中,我正在使用 Thymeleaf 加载我的翻译:
<button type="button" ng-click="$ctrl.resetData()" th:text="#{general.reset}">Reset</button>
是否可以翻译在我的 JavaScript 代码中硬编码的文本? 'Loading Data...' 应该用 th:text="#{general.loadingData}"
function(request: any) {
asLoading.show('Loading Data...');
return request || $q.when(request);
}
【问题讨论】:
标签: javascript thymeleaf translation