Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Created September 10, 2020 16:47
Show Gist options
  • Save reachkamrul/c9594af99c944ae3605a79e8e6cff037 to your computer and use it in GitHub Desktop.
Save reachkamrul/c9594af99c944ae3605a79e8e6cff037 to your computer and use it in GitHub Desktop.
add_filter('fluentform/date_i18n', function ($strings) {
$strings = array(
'months' => [
'shorthand' => [
__('Jan', 'fluentform'),
__('Fev', 'fluentform'),
__('Mar', 'fluentform'),
__('Avr', 'fluentform'),
__('Mai', 'fluentform'),
__('Juin', 'fluentform'),
__('Jui', 'fluentform'),
__('Aou', 'fluentform'),
__('Sep', 'fluentform'),
__('Oct', 'fluentform'),
__('Nov', 'fluentform'),
__('Dec', 'fluentform')
],
'longhand' => [
__('Janvier', 'fluentform'),
__('Février', 'fluentform'),
__('Mars', 'fluentform'),
__('Avril', 'fluentform'),
__('Mai', 'fluentform'),
__('Juin', 'fluentform'),
__('Juillet', 'fluentform'),
__('Aout', 'fluentform'),
__('Septembre', 'fluentform'),
__('Octobre', 'fluentform'),
__('Novembre', 'fluentform'),
__('Décembre', 'fluentform')
]
],
'weekdays' => [
'longhand' => array(
__('Dimanche', 'fluentform'),
__('Lundi', 'fluentform'),
__('Mardi', 'fluentform'),
__('Mercredi', 'fluentform'),
__('Jeudi', 'fluentform'),
__('Vendredi', 'fluentform'),
__('Samedi', 'fluentform')
),
'shorthand' => array(
__('Dim', 'fluentform'),
__('Lun', 'fluentform'),
__('Mar', 'fluentform'),
__('Mer', 'fluentform'),
__('Jeu', 'fluentform'),
__('Ven', 'fluentform'),
__('Sam', 'fluentform')
)
],
'amPM' => [
__('AM', 'fluentform'),
__('PM', 'fluentform')
],
);
return $strings;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment