@belocal/js-sdk 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,16 +31,6 @@ const engine = new BelocalEngine({
|
|
|
31
31
|
});
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
### Translation with Context
|
|
35
|
-
```javascript
|
|
36
|
-
const translated = await engine.t(
|
|
37
|
-
'Hello {name}!',
|
|
38
|
-
'es',
|
|
39
|
-
{ name: 'María' }
|
|
40
|
-
);
|
|
41
|
-
console.log(translated); // "¡Hola María!"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
34
|
## Automatic Environment Detection
|
|
45
35
|
|
|
46
36
|
The SDK uses conditional exports to automatically load the optimal build:
|