
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
github.com/davidgs/datesi18n
A library to do quick translations of Day and Month names, including 'short' names, where provided.
package main
import (
"fmt"
datesI18N "github.com/davidgs/datesI18N"
)
func main() {
fr := datesI18N.NewDatesI18N("fr") // french
wed := fr.Weekdays.Wednesday
fmt.Println("French Wednesday: ", wed)
}
Output:
French Wednesday: Mercredi
If you are using the Go time
Package, you can use this package to give you translated Days and months.
Note: Not all languages have all parts translated! Soo the lang/
directory for languages supported. See the individual .json
file for which parts of the Days/Months are provided.
If you would like to provide additional translations or additions to a given translation, please submit a PR!
See Supported Languages for a current list of fully- or partially-supported languages
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.