Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 613871c

Browse files
authored
Update index.js
1 parent b448a14 commit 613871c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/directive/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@ export default function (app) {
1818
if (language != "en_us") el.style.display = "none";
1919
}
2020
});
21+
22+
app.directive("isru", {
23+
// eslint-disable-next-line no-unused-vars
24+
mounted(el, binding, vnode) {
25+
const language = i18n.global.locale;
26+
if (language != "ru_ru") el.style.display = "none";
27+
}
28+
});
2129
}

0 commit comments

Comments
 (0)