mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
fix tr()
This commit is contained in:
parent
0a618c40ad
commit
1afac2492b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def locale_dir() -> str:
|
||||||
|
|
||||||
def tr(key: FString, **kwargs: Union[str, int, float]) -> str:
|
def tr(key: FString, **kwargs: Union[str, int, float]) -> str:
|
||||||
"Shortcut to access Fluent translations."
|
"Shortcut to access Fluent translations."
|
||||||
return anki.lang.current_i18n.translate(key, *kwargs)
|
return anki.lang.current_i18n.translate(key, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def openHelp(section):
|
def openHelp(section):
|
||||||
|
|
Loading…
Reference in a new issue