PHPackages                             richardsjoqvist/silverstripe-localdate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. richardsjoqvist/silverstripe-localdate

ActiveSilverstripe-module[Localization &amp; i18n](/categories/localization)

richardsjoqvist/silverstripe-localdate
======================================

Translates formatted date strings to the locale set with i18n::set\_locale() if there is a matching language file.

1.3.2(6y ago)79.1k10PHPPHP &gt;=5.3.2CI failing

Since May 3Pushed 6y ago2 watchersCompare

[ Source](https://github.com/richardsjoqvist/silverstripe-localdate)[ Packagist](https://packagist.org/packages/richardsjoqvist/silverstripe-localdate)[ Docs](https://github.com/richardsjoqvist/silverstripe-localdate)[ RSS](/packages/richardsjoqvist-silverstripe-localdate/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (10)Used By (0)

LocalDate SilverStripe module
=============================

[](#localdate-silverstripe-module)

LocalDate translates formatted date strings if there is a matching language file.

Requirements
------------

[](#requirements)

- SilverStripe 3.1 (this module will probably not be updated to SilverStripe 4)

Notes
-----

[](#notes)

- Compatible with [Translatable](https://github.com/silverstripe/silverstripe-translatable)

Installation
------------

[](#installation)

1. Drop the module into your SilverStripe project and run /dev/build
2. Set the correct locale in your project `_config.php` using `i18n::set_locale('xx_XX');`

You may also set the language manually using `LocalDateHelper::setLocale('xx_XX');` at any time.

Usage
-----

[](#usage)

The module will extend and override SS\_Datetime and Date. Existing dates will be automatically translated as long as a valid language file exists as long as they are of SS\_Datetime or Date type.

The locale for the translated date is based on (in order):

1. Any valid locale set with the `LocalDateHelper::setLocale('xx_XX');`
2. The current locale for `Translatable` if the module is installed
3. The current i18n-setting

If the language file for your locale is missing you can easily create it yourself. Simply use one of the included language files as a template and save it to your `/mysite/lang` folder. Better yet, fork this repo and add it to the lang-folder and send me a pull request. Sending me an email () with the translated file attached will also do the trick.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~321 days

Recently: every ~576 days

Total

9

Last Release

2287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e7b085f80139f2ffffa4cf6ce00890600d27ce2a40ebf4ca4dae7e41f56b3b5?d=identicon)[richardsjoqvist](/maintainers/richardsjoqvist)

---

Top Contributors

[![arkoz](https://avatars.githubusercontent.com/u/2168944?v=4)](https://github.com/arkoz "arkoz (4 commits)")[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (3 commits)")[![anselmdk](https://avatars.githubusercontent.com/u/1316533?v=4)](https://github.com/anselmdk "anselmdk (2 commits)")[![gerrut](https://avatars.githubusercontent.com/u/3831311?v=4)](https://github.com/gerrut "gerrut (1 commits)")[![jelicanin](https://avatars.githubusercontent.com/u/692844?v=4)](https://github.com/jelicanin "jelicanin (1 commits)")[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (1 commits)")[![richardsjoqvist](https://avatars.githubusercontent.com/u/905706?v=4)](https://github.com/richardsjoqvist "richardsjoqvist (1 commits)")[![devOp1](https://avatars.githubusercontent.com/u/2767908?v=4)](https://github.com/devOp1 "devOp1 (1 commits)")

---

Tags

silverstripedatemodulelocalelocaldate

### Embed Badge

![Health badge](/badges/richardsjoqvist-silverstripe-localdate/health.svg)

```
[![Health](https://phpackages.com/badges/richardsjoqvist-silverstripe-localdate/health.svg)](https://phpackages.com/packages/richardsjoqvist-silverstripe-localdate)
```

###  Alternatives

[fightbulc/moment

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

9673.5M13](/packages/fightbulc-moment)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

90442.7k30](/packages/tractorcow-silverstripe-fluent)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

226.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
