summaryrefslogtreecommitdiff
path: root/UI source code/dns_mapping_ui-master/src/utils/i18n.js
diff options
context:
space:
mode:
authorunknown <[email protected]>2022-06-24 17:11:23 +0800
committerunknown <[email protected]>2022-06-24 17:11:23 +0800
commit8565e1bb597b481447d33bac6d8c48c2c45215de (patch)
treea4f10c8f7f85a1a8b5c947f7d0d2f967d808a9c4 /UI source code/dns_mapping_ui-master/src/utils/i18n.js
parent8165dfcc7bdb0b2e6f1c05f8e7c93553c0e7911e (diff)
upload UI source codeHEADmain
Diffstat (limited to 'UI source code/dns_mapping_ui-master/src/utils/i18n.js')
-rw-r--r--UI source code/dns_mapping_ui-master/src/utils/i18n.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/UI source code/dns_mapping_ui-master/src/utils/i18n.js b/UI source code/dns_mapping_ui-master/src/utils/i18n.js
new file mode 100644
index 0000000..c1aca41
--- /dev/null
+++ b/UI source code/dns_mapping_ui-master/src/utils/i18n.js
@@ -0,0 +1,22 @@
+// translate router.meta.title, be used in breadcrumb sidebar tagsview
+// export function generateTitle(title) {
+// console.log(this.$te, 222)
+// // const hasKey = this.$te('route.' + title)
+
+// if (hasKey) {
+// // $t :this method from vue-i18n, inject in @/lang/index.js
+// const translatedTitle = this.$t('route.' + title)
+
+// return translatedTitle
+// }
+// return title
+// }
+
+// export function generateTitle(title){
+// const hasKey = this.$te('route.' + title)
+// if(hasKey){
+// const translatedTitle = this.$t('route.' + title)
+// return translatedTitle
+// }
+// return title
+// }