Skip to content

Commit e49a1d3

Browse files
authored
Update README.md
1 parent 022c25b commit e49a1d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ $translate->setIconPath("https://foo.com/assets/flags/");
5656
Load supportes javascript plugin
5757
```php
5858
$translate->load();
59+
```
60+
61+
Force translate page once pages is loaded, this must be called after `$translate->load();`
62+
```php
63+
$translate->forceLanguage("ms");
5964
```
6065

6166
Full usage on website to translate webpage
@@ -84,7 +89,7 @@ $translate->setIconPath("https://foo.com/assets/flags/");
8489
We believe in banking locally and hope you will too.
8590
</p>
8691
</div>
87-
<?php $translate->load();?>
92+
<?php $translate->load();$translate->forceLanguage("jp");?>
8893
</body>
8994
</html>
9095
```

0 commit comments

Comments
 (0)