-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14467 from mozilla/train-245-uplift-1
Train 245 uplift 1
- Loading branch information
Showing
66 changed files
with
683 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
'use strict'; | ||
|
||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
concat: { | ||
ftl: { | ||
src: [ | ||
// 'src/branding.ftl' is temporary | ||
// and will be replaced with '../fxa-shared/lib/l10n/branding.ftl' | ||
// in a later ticket - will require coordination with l10n to resolve | ||
// conflicting IDs for identical terms. | ||
'src/branding.ftl', | ||
'src/**/*.ftl', | ||
], | ||
dest: 'public/locales/en/payments.ftl', | ||
}, | ||
|
||
// We need this for tests because we pull the latest from `fxa-content-server-l10n` | ||
// and place those in our `public` directory at `postinstall` time, and sometimes we have | ||
// FTL updates on our side that haven't landed yet on the l10n side. We want to test | ||
// against _our_ latest, and not necessarily the l10n repo's latest. | ||
'ftl-test': { | ||
src: ['src/branding.ftl', 'src/**/*.ftl'], | ||
dest: 'test/payments.ftl', | ||
}, | ||
}, | ||
watch: { | ||
ftl: { | ||
files: ['src/**/*.ftl'], | ||
tasks: ['merge-ftl'], | ||
options: { | ||
interrupt: true, | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
|
||
grunt.registerTask('merge-ftl', ['concat:ftl']); | ||
grunt.registerTask('merge-ftl:test', ['concat:ftl-test']); | ||
grunt.registerTask('watch-ftl', ['watch:ftl']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
basepath = "." | ||
|
||
[[paths]] | ||
reference = "public/locales/en-US/*.ftl" | ||
reference = "public/locales/en/*.ftl" | ||
l10n = "public/locales/{locale}/*.ftl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.