aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/i18n.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/i18n.js')
-rw-r--r--src/js/i18n.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/i18n.js b/src/js/i18n.js
index ce05041..bee0b96 100644
--- a/src/js/i18n.js
+++ b/src/js/i18n.js
@@ -28,10 +28,10 @@
uDom.onLoad(function() {
uDom('[data-i18n]').forEach(function(elem) {
- elem.html(vAPI.i18n.getMessage(elem.attr('data-i18n')));
+ elem.html(vAPI.i18n(elem.attr('data-i18n')));
});
uDom('[title]').forEach(function(elem) {
- var title = vAPI.i18n.getMessage(elem.attr('title'));
+ var title = vAPI.i18n(elem.attr('title'));
if ( title ) {
elem.attr('title', title);
}
@@ -39,7 +39,7 @@ uDom.onLoad(function() {
uDom('[data-i18n-tip]').forEach(function(elem) {
elem.attr(
'data-tip',
- vAPI.i18n.getMessage(elem.attr('data-i18n-tip')).replace(/<br>/g, '')
+ vAPI.i18n(elem.attr('data-i18n-tip')).replace(/<br>/g, '')
);
});
});