Skip to content

Localization ​

Type
Abstract Class
Namespace
craft\commerce\helpers
Inherits
craft\commerce\helpers\Localization » craft\helpers\Localization
Since
3.4.10

Localization Helper

View source

Public Methods ​

MethodDescription
findMissingTranslation()Looks for a missing translation string in Yii's core translations.
normalizeLanguage()Normalizes a language into the correct format (e.g. en-US).
normalizeNumber()Normalizes a user-submitted number for use in code and/or to be saved into the database.
normalizePercentage()Normalizes a percentage value into a float.

normalizePercentage() ​

Normalizes a percentage value into a float.

View source

Arguments ​

Returns ​

float, null