Wiki articles tagged with "i18n"

Showing 1-4 of 4 items.

Getting information from the current locale

Created 8 months ago by CeBe, updated 8 months ago by CeBe.

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 6 210 times
Version: 2.0
Category: How-tos

Language Selector

Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 9 421 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

Created 3 years ago by phunsanit, updated 3 years ago by phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 19 741 times
Version: 2.0
Category: Tutorials

Save and Display Date/Time Fields in different formats in Yii2

Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 139 940 times
Version: 2.0
Category: How-tos