File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- echo " Fixing language root key in pt-BR and pt-PT crowdin files to match the filename"
43if [ " $( uname -s) " = " Darwin" ]; then
5- sed -i ' ' ' s/^pt:/pt-BR:/' config/locales/crowdin/* pt-BR* .yml modules/* /config/locales/crowdin/* pt-BR* .yml
6- sed -i ' ' ' s/^pt:/pt-PT:/' config/locales/crowdin/* pt-PT* .yml modules/* /config/locales/crowdin/* pt-PT* .yml
4+ sed-i () { sed -i ' ' " $@ " ; }
75else
8- sed -i ' s/^pt:/pt-BR:/' config/locales/crowdin/* pt-BR* .yml modules/* /config/locales/crowdin/* pt-BR* .yml
9- sed -i ' s/^pt:/pt-PT:/' config/locales/crowdin/* pt-PT* .yml modules/* /config/locales/crowdin/* pt-PT* .yml
6+ sed-i () { sed -i " $@ " ; }
107fi
8+
9+ echo " Fixing language root key in pt-BR and pt-PT crowdin files to match the filename"
10+ sed-i ' s/^pt:/pt-BR:/' config/locales/crowdin/* pt-BR* .yml modules/* /config/locales/crowdin/* pt-BR* .yml
11+ sed-i ' s/^pt:/pt-PT:/' config/locales/crowdin/* pt-PT* .yml modules/* /config/locales/crowdin/* pt-PT* .yml
You can’t perform that action at this time.
0 commit comments