Cleanup a lot of stuff
I've replaced `lodash` with `lodash-es`, so it can be tree-shaken `~/modules` is a directory with application modules that run before app is mounted. Useful for configuration, web socket connection, and other stuff `~/composables` is a directory with our custom composables. Much like `~/utils` but each util is in its own file
This commit is contained in:
parent
a129f7f882
commit
2b40707f4f
121 changed files with 1808 additions and 1442 deletions
|
|
@ -3,7 +3,7 @@
|
|||
cd "$(dirname $0)/.." # change into base directory
|
||||
source scripts/utils.sh
|
||||
|
||||
locales=$(tail -n +2 src/locales.js | sed -e 's/export default //' | jq '.locales[].code' | grep -v 'en_US' | xargs echo)
|
||||
locales=$(tail -n +3 src/locales.ts | sed -E 's/^[^[]+\[] =//' | jq -r '.[].code' | grep -v 'en_US')
|
||||
mkdir -p src/translations
|
||||
|
||||
for locale in $locales; do
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
cd "$(dirname $0)/.." # change into base directory
|
||||
source scripts/utils.sh
|
||||
|
||||
locales=$(tail -n +2 src/locales.js | sed -e 's/export default //' | jq '.locales[].code' | xargs echo)
|
||||
locales=$(tail -n +3 src/locales.ts | sed -E 's/^[^[]+\[] =//' | jq -r '.[].code')
|
||||
locales_dir="locales"
|
||||
sources=$(find src -name '*.vue' -o -name '*.html' 2> /dev/null)
|
||||
js_sources=$(find src -name '*.vue' -o -name '*.js')
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ cd "$(dirname $0)/.." # change into base directory
|
|||
old_locales_dir=$1
|
||||
new_locales_dir=$2
|
||||
|
||||
locales=$(tail -n +2 src/locales.js | sed -e 's/export default //' | jq '.locales[].code' | xargs echo)
|
||||
locales=$(tail -n +3 src/locales.ts | sed -E 's/^[^[]+\[] =//' | jq -r '.[].code')
|
||||
|
||||
# Generate .po files for each available language.
|
||||
echo $locales
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue