diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index f0383a6..f4b360a 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -213,6 +213,11 @@ THE SOFTWARE. // Update the locale this.$i18n.locale = data.computed; + + // Analytics + const pack = data.computed.match(/^([a-z]+)([A-Z]*)$/).slice(1) + .map(x => x.toLowerCase()).filter(x => !!x).join('_'); + analytics(`set_language_${pack}`, 'Language'); }, deep: true, },