added export module (#538)

This commit is contained in:
Kevin Papst
2019-02-05 21:37:33 +01:00
committed by GitHub
parent 062735c9e3
commit 816866549c
104 changed files with 3770 additions and 608 deletions

View File

@@ -111,6 +111,17 @@ class LocaleSettings
return $this->getConfigByLocaleAndKey('date', $locale);
}
/**
* Returns the locale specific datetime format, which should be used in combination with the twig filter "|date".
*
* @param null|string $locale
* @return string
*/
public function getDateTimeFormat(?string $locale = null): string
{
return $this->getConfigByLocaleAndKey('date_time', $locale);
}
/**
* Returns the format used in the "|duration" twig filter to display a Timesheet duration.
*
@@ -143,5 +154,4 @@ class LocaleSettings
return $this->settings[$locale][$key];
}
}