Skip to content

Commit f9689dc

Browse files
authored
Update README.md
1 parent f1fc2ff commit f9689dc

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $translate->setIconPath("/assets/flags/")->setIconType(GTranslator::PNG);
6565
$translate->button(optional width = "50%");
6666
```
6767

68-
When your provider is `GTranslator::SELECT`, button will return a html select option
68+
When your provider is `GTranslator::SELECT`, button will return a html select option.
6969
```php
7070
$translate->button();
7171
```
@@ -75,24 +75,29 @@ $translate->setIconPath("/assets/flags/")->setIconType(GTranslator::PNG);
7575
$translate->imageButton();
7676
```
7777

78-
Load supportes javascript plugin
78+
Load translator javascript plugin
7979
```php
8080
$translate->load();
8181
```
8282

83-
Force translate page once pages is loaded, this must be called after `$translate->load();`
84-
Method has deprecated and will be removed in future versions.
85-
Use preferredLanguage(string $key) instead.
83+
Sets dropdown contemner class name.
84+
85+
```php
86+
$translate->setContainerClass("my-translator");
87+
```
88+
89+
Sets dropdown items class name.
90+
8691
```php
87-
$translate->forceLanguage("ms");
92+
$translate->setItemsClass("my-translator");
8893
```
8994

90-
Set prefered language, this must be called after `$translate->load();`
95+
Set preferred language, this must be called after `$translate->load();`
9196
```php
9297
$translate->preferredLanguage("ms");
9398
```
9499

95-
Automatically detect browser language, this must be called after `$translate->load();`
100+
Automatically detect browser language, this must be called after `$translate->load();`
96101
```php
97102
$translate->autoTranslate();
98103
```

0 commit comments

Comments
 (0)