File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
The ` lit-localize ` module exports the following functions:
10
10
11
+ > Note that lit-localize relies on distinctive, annotated TypeScript type
12
+ > signatures to identify calls to ` msg ` and other APIs during analysis of your
13
+ > code. Casting a lit-localize function to a type that does not include its
14
+ > annotation will prevent lit-localize from being able to extract and transform
15
+ > templates from your application. For example, a cast like
16
+ > ` (msg as any)("greeting", "Hello") ` will not be identified. It is safe to
17
+ > re-assign lit-localize functions or pass them as parameters, as long as the
18
+ > distinctive type signature is preserved. If needed, you can reference each
19
+ > function's distinctive type with e.g. ` typeof msg ` .
20
+
11
21
### ` configureLocalization(configuration) `
12
22
13
23
Set runtime localization configuration.
You can’t perform that action at this time.
0 commit comments