zotero/scripts/locale/pull_ftl
Dan Stillman 4949f7459e
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Build, Upload (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
Add Serbian (Latin) locale generated from Serbian (Cyrillic)
sr-Latn-RS is transliterated from sr-RS by
scripts/locale/generate_sr_latn, which runs as part of the locale
update scripts, with exceptions for foreign names that the Cyrillic
spells phonetically.

https://forums.zotero.org/discussion/113596/localization-serbian
2026-11-13 21:21:49 -05:00

22 lines
485 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
cd $ROOT_DIR/chrome/locale
for i in `ls -d */`; do
if [ $i = 'en-US' ]; then
continue
fi
touch ${i}zotero/zotero.json
done
cd $ROOT_DIR
tx pull -t -f -m sourceastranslation -r zotero.zoterojson
npm run localize-ftl
find $ROOT_DIR/chrome/locale -type f -name 'zotero.json' -not -path '*/en-US/*' -delete
$SCRIPT_DIR/generate_sr_latn