Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAY-6736 Welsh translation integration #847

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ package-lock.json
/reports/*
mochawesome-report/
functional-output/
.angular

# System Files
.DS_Store
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"dependencies": {
"@babel/eslint-parser": "^7.11.0",
"@babel/helper-create-class-features-plugin": "^7.21.8",
"@hmcts/ccpay-web-component": "6.0.13",
"@hmcts/ccpay-web-component": "6.0.17-beta01",
"@hmcts/cookie-manager": "^1.0.0",
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/nodejs-logging": "^4.0.4",
Expand Down Expand Up @@ -85,6 +85,7 @@
"pug": "^3.0.2",
"request": "^2.88.0",
"request-promise-native": "^1.0.5",
"rpx-xui-translation": "1.0.2",
"rxjs": "~6.6.7",
"rxjs-compat": "^6.5.2",
"superagent": "8.0.8",
Expand Down
11 changes: 10 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { CookiePolicyComponent } from './components/cookie-policy/cookie-policy.
import { CookieDetailsComponent } from './components/cookie-details/cookie-details.component';
import { windowProvider, windowToken } from '../window';
import { CookieTableComponent } from './components/cookie-table/cookie-table.component';
import { RpxTranslationModule } from 'rpx-xui-translation';

const nonProductionProviders = [{
provide: HTTP_INTERCEPTORS,
Expand Down Expand Up @@ -77,7 +78,15 @@ const nonProductionProviders = [{
FeeRegisterSearchModule,
PaymentLibModule,
NoopAnimationsModule,
BrowserAnimationsModule
BrowserAnimationsModule,
RpxTranslationModule.forRoot({
baseUrl: '/api/translation',
debounceTimeMs: 300,
validity: {
days: 1
},
testMode: false
})
],
providers: [
PaybubbleHttpClient,
Expand Down
Loading