We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0828458 commit 811806cCopy full SHA for 811806c
src/index.ts
@@ -70,7 +70,7 @@ export function loadLanguageAsync(lang: string): Promise<string | void> {
70
/**
71
* Get the translation for the given key.
72
*/
73
-export function trans(key: string, replacements: ReplacementsInterface): string {
+export function trans(key: string, replacements?: ReplacementsInterface): string {
74
if (!activeMessages[key]) {
75
activeMessages[key] = key
76
}
test/plugin.spec.js renamed to test/plugin.spec.ts
0 commit comments