Skip to content

Commit

Permalink
Added comment on usage doc for t()
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkopp committed Jan 13, 2023
1 parent a602db9 commit 572895a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instruments/src/EFB/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ const placeholderReplace = (translation: string, replacements: Record<string, st
* If a replacement list is provided it will replace the placeholders in the string with the
* key as placeholder-text to be search and the value as the string to be put in place.
*
* Placeholders are defined as follows: %(key)
* Placeholders are defined as follows: $key
*
* E.g. "Hello %(name)" with {name: "John"} will return "Hello John"
* E.g. "Hello $name" with {name: "John"} will return "Hello John"
*
* Note: Currently all language files are imported and contain all keys so this is redundant
* but still implemented for future changes.
Expand Down

0 comments on commit 572895a

Please sign in to comment.