Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Modifies the array of locale language variant mappings that avoids duplicate translations.
This filter allows you to customize which locale variants should map to which main locale translation to avoid duplicating translations of very similar or equal language variants.
Parameters #
$variants(array) The array of locale language variant mappings. Keys are variant locales, values are the main locale they should map to.
Examples #
/**
* Customize locale language variant mappings
*/
function customize_locale_language_variant( $variants ) {
// Modify existing mappings
$variants['pt_PT'] = 'pt_BR'; // Force using Brazilian Portuguese for Portugal
return $variants;
}
add_filter( 'fc_locale_language_variant', 'customize_locale_language_variant', 10 );
