From 8ffaf496613ad962dc034126ea9ce8175b3a03b7 Mon Sep 17 00:00:00 2001 From: Nicolas Widart <n.widart@gmail.com> Date: Sat, 16 Sep 2017 17:40:07 +0200 Subject: [PATCH] Adding doc reminder --- Modules/Core/Assets/js/mixins/TranslationHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Core/Assets/js/mixins/TranslationHelper.js b/Modules/Core/Assets/js/mixins/TranslationHelper.js index f11fc6a5..279ca6c4 100644 --- a/Modules/Core/Assets/js/mixins/TranslationHelper.js +++ b/Modules/Core/Assets/js/mixins/TranslationHelper.js @@ -1,7 +1,8 @@ export default { methods: { trans(string) { - // Makes a string: page. + // Makes a string: core.button.cancel | core.button.created at + // to: core["button.cancel"] | core["button.created at"] let array = string.split('.'); if (array.length < 2) { return this.$t(string) } -- 2.21.0