Class humhub\assets\JqueryTimeAgoLocaleAsset

Inheritancehumhub\assets\JqueryTimeAgoLocaleAsset » yii\web\AssetBundle
Available since version1.2

TimeAgo Asset Locale

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$languageMapping array Language mapping between humhub locale id and timeago messages humhub\assets\JqueryTimeAgoLocaleAsset
$sourcePath humhub\assets\JqueryTimeAgoLocaleAsset

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() humhub\assets\JqueryTimeAgoLocaleAsset

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
registerLocale() Adds the correct locale file to js files humhub\assets\JqueryTimeAgoLocaleAsset

Property Details

$languageMapping public property

Language mapping between humhub locale id and timeago messages

public array $languageMapping = ['nb_no' => 'no''pt_br' => 'pt-br''zh_cn' => 'zh-CN''zh_tw' => 'zh-TW''fa_ir' => 'fa']
$sourcePath public property
public $sourcePath '@bower/jquery-timeago'

Method Details

init() public method

public void init ( )
registerLocale() protected method

Adds the correct locale file to js files

protected void registerLocale ( )