You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_WIP_ means Work-in-progress i.e this feature is not supported now, but planned to be implemented.
49
-
49
+
50
50
### Cases
51
51
52
52
| Case | Russian |
@@ -110,12 +110,14 @@ It uses built-in inflector for English (`yii\helpers\Inflector`) and [Morphos](h
110
110
];
111
111
```
112
112
- Optional service parameters:
113
-
- `language` - default language for inflection. Currently supported langs is `ru` (Russian) and `en` (English). If you passed unsupported or unknown language, an Exception will be throwed during service initializion. By default, it uses **language** parameter of current application.
114
-
113
+
-`language` - default language for inflection. Currently supported langs is `ru` (Russian) and `en` (English). If you passed unsupported or unknown language, an Exception will be throwed during service initializion. By default, it uses **language** parameter of current application.
114
+
-`defaultCurrency` - default currency when converting money to words. If set, call `monetize(float value)` without currency: `Yii::$app->inflection->monetize(123.45)` => `сто двадцать три рубля сорок пять копеек`
115
+
116
+
115
117
3. Call any methods described above in a controller / command / view.
0 commit comments