浏览代码

make sure names are lowercase

Markus-Rost 3 年之前
父节点
当前提交
e28e7d42e3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .github/workflows/commands.yaml

+ 4 - 0
.github/workflows/commands.yaml

@@ -24,6 +24,10 @@ jobs:
             do
             do
               echo $key
               echo $key
               content="`jq \".$file.\\\"$key\\\"\" interactions/i18n/$language.json`"
               content="`jq \".$file.\\\"$key\\\"\" interactions/i18n/$language.json`"
+              if ! [[ "$key" =~ description$ || "$key" =~ choices\[[0-9]+\]\.name$ ]]
+              then
+                content=${content,,}
+              fi
               echo $content
               echo $content
               if [[ "$language" = "en" ]]
               if [[ "$language" = "en" ]]
               then
               then