Skip to content

Commit

Permalink
feat(next): l10n: Update payments-next logic to use payments-next.ftl
Browse files Browse the repository at this point in the history
Because:

* payments-next no longer needs to rely on payments translations, as payments-next translations are completed.

This commit:

* Removes the dependency on payments.ftl translations within payments-next project.json and gruntfile.js

Closes #FXA-7841
  • Loading branch information
david1alvarez committed Jan 10, 2025
1 parent e47544f commit 1a2c096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions apps/payments/next/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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/. */

module.exports = function(grunt) {
module.exports = function (grunt) {
const srcPaths = [
'.license.header',
'app/**/*.ftl',
Expand All @@ -26,10 +26,6 @@ module.exports = function(grunt) {
src: srcPaths,
dest: 'public/locales/en/payments-next.ftl',
},
ftlLegacy: {
src: srcPaths,
dest: 'public/locales/en/payments.ftl',
},
},
http: {
// Call the Payments Next route to restart and reinitialize the Nest App.
Expand Down Expand Up @@ -76,6 +72,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-http');
grunt.loadNpmTasks('grunt-concurrent');

grunt.registerTask('merge-ftl', ['copy:branding-ftl', 'concat:ftl', 'concat:ftlLegacy']);
grunt.registerTask('merge-ftl', [
'copy:branding-ftl',
'concat:ftl'
]);
grunt.registerTask('watchers', ['concurrent:dev']);
};
2 changes: 1 addition & 1 deletion apps/payments/next/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"l10n-bundle": {
"dependsOn": ["l10n-merge"],
"command": "./_scripts/l10n/bundle.sh apps/payments/next branding,react,payments"
"command": "./_scripts/l10n/bundle.sh apps/payments/next branding,react,payments-next"
},
"watchers": {
"command": "yarn grunt --gruntfile='apps/payments/next/Gruntfile.js' watchers"
Expand Down

0 comments on commit 1a2c096

Please sign in to comment.