OSDN Git Service

[fix] : Fixed translation at line break
authorhayao <shun819.mail@gmail.com>
Mon, 21 Dec 2020 06:21:07 +0000 (15:21 +0900)
committerhayao <shun819.mail@gmail.com>
Mon, 21 Dec 2020 06:21:07 +0000 (15:21 +0900)
wfa

diff --git a/wfa b/wfa
index 0179d9f..eec58df 100755 (executable)
--- a/wfa
+++ b/wfa
@@ -357,7 +357,7 @@ translate() {
 
         _get_text() {
             set +eu
-            local _translated_text="$(eval echo '$'{${_locale}["${*}"]})"
+            local _translated_text="$(eval echo '$'{${_locale}[\"${*}\"]})"
             set -eu
             if [[ -z "${_translated_text}" ]]; then
                 echo "${*}"