Skip to content

Commit

Permalink
Expose KeyValues for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
albertwoo committed Apr 6, 2024
1 parent 5bc06bf commit 5f205e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Fun.Blazor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [4.0.11] - 2024-04-06

- Expose KeyValues for i18n

## [4.0.10] - 2024-03-19

- When i18n tran with arguments but failed with exception, we should fallback to something useful instead of throw or only return key
Expand Down
3 changes: 3 additions & 0 deletions Fun.Blazor/I18n.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ type I18n(?newJson: string, ?defaultTrans: Dictionary<string, string>) =
printfn "Translate failed: %A" ex
None
| _ -> None


member _.KeyValues: IEnumerable<KeyValuePair<string, string>> = trans.Value

0 comments on commit 5f205e3

Please sign in to comment.