Skip to content

Commit

Permalink
Merge pull request #1234 from agustiza/readme-missing-injectable
Browse files Browse the repository at this point in the history
chore(README): missing @Injectable in MissingTranslationHandler example
  • Loading branch information
CodeAndWeb authored Nov 4, 2024
2 parents 6259081 + 3d55c27 commit 42ecef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,10 @@ You can use `useDefaultLang` to decide whether default language string should be
Create a Missing Translation Handler
```ts
import {Injectable} from "@angular/core";
import {MissingTranslationHandler, MissingTranslationHandlerParams} from '@ngx-translate/core';

@Injectable()
export class MyMissingTranslationHandler implements MissingTranslationHandler {
handle(params: MissingTranslationHandlerParams) {
return 'some value';
Expand Down

0 comments on commit 42ecef8

Please sign in to comment.