Skip to content

Commit f918a36

Browse files
Update localizeFormat.md
1 parent 9d46da6 commit f918a36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/developers/core/localizeFormat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ translation system can extract it and translate into other languages.
77
The implementation behaves like this under the hood.
88
``` ts
99
function lf(s: string, ...args: any[]): string { // @ignorelf@
10-
let lfmt = _localizeStrings[s] || s;
10+
let lfmt = _localizeStrings[s] || s; // either be _localizedStrings with the index being the string input, or simply the string input itself.
1111

1212
if (!sForPlural && lfmt != s && /\d:s\}/.test(lfmt)) {
1313
lfmt = lfmt.replace(/\{\d+:s\}/g, "")

0 commit comments

Comments
 (0)