Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Fixes a problem due to a breaking TS change #187

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion projects/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vcd/i18n",
"version": "1.0.0-dev.0",
"version": "1.0.0-dev.1",
"peerDependencies": {
"@angular/common": ">6.0.0",
"@angular/core": ">6.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('MockTranslationService', () => {

it('uses the perferred local set', () => {
service.preferredLocale = 'en';
expect(service.activeLocale).toEqual('en');
expect(service.getActiveLocale()).toEqual('en');
});

it('formats dates using the default formatter', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/src/lib/service/mock-translation-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MockTranslationService extends TranslationService {

registerTranslations(set: TranslationSet): void {}

get activeLocale(): string {
getActiveLocale(): string {
return this.preferredLocale;
}

Expand Down