mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
20 lines
455 B
Bash
Executable file
20 lines
455 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
|