refactor(l10n): take l10n repo out of node_modules (#2079)
Same as https://github.com/mozilla/fxa-content-server/pull/5395 Fixes #1678
This commit is contained in:
Родитель
bc647b33a9
Коммит
1f36c6d3a7
|
@ -18,3 +18,4 @@ secret*
|
|||
npm-debug.log
|
||||
server.pot
|
||||
.mail_output
|
||||
fxa-content-server-l10n/
|
||||
|
|
|
@ -17,7 +17,7 @@ module.exports = function (grunt) {
|
|||
files: [{
|
||||
expand: true,
|
||||
flatten: true,
|
||||
cwd: path.join(pkgroot, 'node_modules', 'fxa-content-server-l10n', 'locale', 'templates', 'LC_MESSAGES'),
|
||||
cwd: path.join(pkgroot, 'fxa-content-server-l10n', 'locale', 'templates', 'LC_MESSAGES'),
|
||||
dest: pkgroot,
|
||||
src: [
|
||||
'server.pot'
|
||||
|
|
|
@ -21,7 +21,7 @@ function parseLocale(locale) {
|
|||
return poParseFile(
|
||||
path.join(
|
||||
__dirname,
|
||||
'../../node_modules/fxa-content-server-l10n/locale',
|
||||
'../../fxa-content-server-l10n/locale',
|
||||
i18n.normalizeLocale(locale),
|
||||
'LC_MESSAGES/server.po'
|
||||
),
|
||||
|
|
|
@ -9,8 +9,13 @@ if [ -z "$FXA_L10N_SHA" ]; then
|
|||
FXA_L10N_SHA="master"
|
||||
fi
|
||||
|
||||
DOWNLOAD_PATH="git://github.com/mozilla/fxa-content-server-l10n.git#$FXA_L10N_SHA"
|
||||
rm -rf fxa-content-server-l10n
|
||||
|
||||
DOWNLOAD_PATH="https://github.com/mozilla/fxa-content-server-l10n.git"
|
||||
|
||||
echo "Downloading L10N files from $DOWNLOAD_PATH..."
|
||||
# Download L10N using npm
|
||||
npm install $DOWNLOAD_PATH
|
||||
# Download L10N using git
|
||||
git clone --depth=20 $DOWNLOAD_PATH
|
||||
cd fxa-content-server-l10n
|
||||
git checkout $FXA_L10N_SHA
|
||||
cd ..
|
||||
|
|
Загрузка…
Ссылка в новой задаче