From 9ecb45bd4e0e07750609347f220acd0455763b64 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Thu, 12 Aug 2021 12:02:44 +0800 Subject: fix: inaccurate google translation behavior (#55) --- _includes/views/header.html | 3 +++ 1 file changed, 3 insertions(+) (limited to '_includes/views/header.html') diff --git a/_includes/views/header.html b/_includes/views/header.html index ba707b0..c43d7ec 100644 --- a/_includes/views/header.html +++ b/_includes/views/header.html @@ -44,6 +44,9 @@ {%- include functions.html func='get_value' -%} {%- assign translate_langs = return -%} {%- if translate_langs.size > 0 -%} + {%- assign name = 'lang' -%} + {%- include functions.html func='get_value' default='en' -%} + {%- assign lang = return -%} {%- include extensions/google-translate.html -%} -- cgit v1.2.3