I18NAuditor will find all internationalized fields in a page and determine if the field has values for all supported languages. Supported languages and the default language are configured in the site definition.
Each field with a value for a supported language will be counted and the total number of all expected values for internationalized fields will be totaled. A ratio of actual internationalized field values to expected internationalized fields are computed and compared to a threshold range. A threshold range defines an upper and lower bound for a given audit result based on the actual internationalized field values to expected field values.
For example, if the actual/expected ratio is:
- error - [0, 0.6)
- warning - [0.6, 0.8)
- note - [0.8, 0.9)
- passed - [0.9, 1]
The threshold delegates replace the
level property for the
I18NAuditor and allow it to report problems of different severity.
In addition to the common auditor properties, this auditor can be configured with the following properties:
A list of fields to be excluded from the audit.
Defines a set of thresholds. See
The thresholds can be configured with the following properties.
Determines how a failed audit will be counted:
Defines the property name for storing failed audit results.
The property name should be unique among auditors or auditors may overwrite results.
Defines a message or explanation for a failed audit.
The low end of the range for the specified
The high end of the range for the specified
A label for the resulting value.
Here is an example from the SEO module. You can find this configuration here: