mirror of
https://github.com/friebetill/TubeCards.git
synced 2025-08-14 18:00:20 +08:00
19 lines
671 B
Bash
Executable File
19 lines
671 B
Bash
Executable File
#!/bin/sh
|
|
|
|
bold=$(tput bold)
|
|
normal=$(tput sgr0)
|
|
|
|
printf "%s\n" "${bold}Setting .env file...${normal}"
|
|
# Parameter expansion to get the location of the script, https://bit.ly/3KM6kXj
|
|
SCRIPT_PATH=${0%/*}
|
|
cd "${SCRIPT_PATH}/.."
|
|
source .env
|
|
|
|
printf "%s\n" "${bold}Fetching translations...${normal}"
|
|
flutter pub run lang_table:generate --platform=airTable --target=Flutter --input="https://api.airtable.com/v0/app6dkbYXMccUCZb1/i18n" --api-key="keyRYfny0HikUbPSL" > /dev/null
|
|
printf "%s\n" "${bold}Done.${normal}"
|
|
|
|
printf "%s\n" "${bold}Update language files...${normal}"
|
|
flutter packages pub run gen_lang:generate --output-dir lib/i18n
|
|
printf "%s\n" "${bold}Done.${normal}"
|