* Initial commit for i18n support * Bring out index page * Lint modified: src/pages/index.js * More Crowdin ephemera * copy src content to i18n/**/docusaurus-plugin-content-docs/current folders * run write-translations * remove superflous files in i18n * fix formatting * remove icons folders from translations, add ja, pt, vi translations * fix formatting * update translation JSON files * add crowdin support & crowdin:sync command, sync with crowdin * exclude failing locales * remove i18n from git cache, add write-heading-ids script * add crowdin:sync to before_install.sh script * add write-i18m shortening script & crowdin:download script (also to before_install.sh) * move crowdin:download from before_install.sh to prebuild hook * remove prebuild hook * remove crowdin script, bump deps * re-add cli/usage * update package-lock.json * add translation sync to build.sh for master * update README * add ja to localesNotBuilding, write e-ids * fix formatting * get on sync with master * replace check for master branch * change build script to work on travis * use refs instead of names * fix build.sh * replace head ref check with channel check * get stable channel in build.sh * remove zip * remove header ids Co-authored-by: rmshea <8948187+rmshea@users.noreply.github.com>
This commit is contained in:
@ -14,12 +14,20 @@ source ../ci/rust-version.sh
|
||||
../ci/docker-run.sh "$rust_stable_docker_image" docs/convert-ascii-to-svg.sh
|
||||
./set-solana-release-tag.sh
|
||||
|
||||
# Get current channel
|
||||
eval "$(../ci/channel-info.sh)"
|
||||
|
||||
# Synchronize translations with Crowdin only on stable channel
|
||||
if [ "$CHANNEL" = stable ]; then
|
||||
echo "Downloading & updating translations..."
|
||||
npm run crowdin:download
|
||||
npm run crowdin:upload
|
||||
fi
|
||||
|
||||
# Build from /src into /build
|
||||
npm run build
|
||||
echo $?
|
||||
|
||||
eval "$(../ci/channel-info.sh)"
|
||||
|
||||
# Publish only from merge commits and beta release tags
|
||||
if [[ -n $CI ]]; then
|
||||
if [[ -z $CI_PULL_REQUEST ]]; then
|
||||
|
Reference in New Issue
Block a user