Skip to content

Commit

Permalink
Translation context made optional
Browse files Browse the repository at this point in the history
Signed-off-by: Slava Fomin II <[email protected]>
  • Loading branch information
slavafomin committed Dec 22, 2021
1 parent 4745315 commit 6bef74e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@

# 0.0.3 (patch update)

- translation context made optional


# 0.0.2 (patch update)

- exported method options interface types to simplify library usage:
`AddTranslationOptions` and `GetTranslatorOptions`.
`AddTranslationOptions` and `GetTranslatorOptions`


# 0.0.1
Expand Down
2 changes: 1 addition & 1 deletion src/fluent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Fluent {
public translate(
locales: (LocaleId | LocaleId[]),
messageId: string,
context: TranslationContext
context?: TranslationContext

): string {

Expand Down
2 changes: 1 addition & 1 deletion src/translator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Translator {

public translate(
messageId: string,
context: TranslationContext
context?: TranslationContext

): string {

Expand Down

0 comments on commit 6bef74e

Please sign in to comment.