breadlesscode/neos-localized-date
Composer 安装命令:
composer require breadlesscode/neos-localized-date
包简介
A small Eel helper for Neos CMS with which you can format Dates localized
README 文档
README
A little Eel helper for date localization.
Installation
Most of the time you have to make small adjustments to a package (e.g., the configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site package located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:
composer require breadlesscode/neos-localized-date --no-update
The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Your desired package is now installed correctly.
Usage
The format parameter is using the strftime() format and the locale parameter is optional.
${ LocalizedDate.format(Date.now(), '%d %B %G', 'de_DE') }
Configuration
Breadlesscode: LocalizedDate: defaultLocale: 'de_DE.utf8' # this locale is the default if no locale is given in Eel helper
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-02-13