Skip to content

Commit

Permalink
refactor: mark formatter name property readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 18, 2021
1 parent 07b8958 commit 13b4ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adonis-typings/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ declare module '@ioc:Adonis/Addons/I18n' {
* specification.
*/
export interface TranslationsFormatterContract {
name: string
readonly name: string

/**
* Formats a message for the current locale
Expand Down
2 changes: 1 addition & 1 deletion src/Formatters/Message/Icu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class IcuFormatter implements TranslationsFormatterContract {
/**
* Formatter syntax name
*/
public name: string = 'icu'
public readonly name: string = 'icu'

/**
* Define a custom format for message
Expand Down

0 comments on commit 13b4ff9

Please sign in to comment.