All Projects → FormatterKit → Dayperiodformatter

FormatterKit / Dayperiodformatter

Licence: mit
A formatter for localized day periods (morning, afternoon, night, etc.)

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Dayperiodformatter

li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (-83.98%)
Mutual labels:  i18n, formatter
Globalize
A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
Stars: ✭ 4,612 (+2448.07%)
Mutual labels:  i18n, formatter
vue-translated
Internationalization (i18n) and localization (l10n) library for Vue.js v2.
Stars: ✭ 19 (-89.5%)
Mutual labels:  i18n, formatter
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (-90.61%)
Mutual labels:  i18n, formatter
react-put
A flexible formatter and i18n interface for React.
Stars: ✭ 23 (-87.29%)
Mutual labels:  i18n, formatter
Moment.php
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Stars: ✭ 900 (+397.24%)
Mutual labels:  i18n, formatter
Xk Time
xk-time 是时间转换,时间计算,时间格式化,时间解析,日历,时间cron表达式和时间NLP等的工具,使用Java8,线程安全,简单易用,多达70几种常用日期格式化模板,支持Java8时间类和Date,轻量级,无第三方依赖。
Stars: ✭ 162 (-10.5%)
Mutual labels:  formatter
Vue Cli Plugin I18n
🌐 Vue CLI plugin to add vue-i18n to your Vue Project
Stars: ✭ 172 (-4.97%)
Mutual labels:  i18n
Strsync
A CLI tool for localization resource management on Xcode. Built with Google Translator.
Stars: ✭ 157 (-13.26%)
Mutual labels:  i18n
I18n Extract
Manage localization with static analysis. 🔍
Stars: ✭ 152 (-16.02%)
Mutual labels:  i18n
Localize Router
An implementation of routes localisation for Angular
Stars: ✭ 177 (-2.21%)
Mutual labels:  i18n
Node Gettext
A JavaScript implementation of gettext, a localization framework.
Stars: ✭ 175 (-3.31%)
Mutual labels:  i18n
Nixpkgs Fmt
Nix code formatter for nixpkgs [[email protected]]
Stars: ✭ 171 (-5.52%)
Mutual labels:  formatter
Poetic
Automatically install and maintain ESLint, Prettier, EditorConfig and Airbnb rules for JavaScript, TypeScript and React.
Stars: ✭ 165 (-8.84%)
Mutual labels:  formatter
Vue I18next
Internationalization for vue using the i18next i18n ecosystem.
Stars: ✭ 172 (-4.97%)
Mutual labels:  i18n
Yapf
A formatter for Python files
Stars: ✭ 12,203 (+6641.99%)
Mutual labels:  formatter
React Translated
A dead simple way to add complex translations (i18n) in a React (DOM/Native) project 🌎🌍🌏
Stars: ✭ 176 (-2.76%)
Mutual labels:  i18n
Vim Autoformat
Provide easy code formatting in Vim by integrating existing code formatters.
Stars: ✭ 2,000 (+1004.97%)
Mutual labels:  formatter
Formatjs
The monorepo home to all of the FormatJS related libraries, most notably react-intl.
Stars: ✭ 12,869 (+7009.94%)
Mutual labels:  i18n
Extract React Intl Messages
extract react intl messages
Stars: ✭ 174 (-3.87%)
Mutual labels:  i18n

DayPeriodFormatter

import Foundation
import DayPeriodFormatter

let formatter = DayPeriodFormatter()
let dateComponents = DateComponents(hour: 9, minute: 41)
formatter.string(from: dateComponents) // "morning"

// 150+ locales supported
formatter.locale = Locale(identifier: "ja")
formatter.string(from: dateComponents) // "朝"

Requirements

  • Swift 4.0+

Installation

Swift Package Manager

Add the DayPeriodFormatter package to your target dependencies in Package.swift:

import PackageDescription

let package = Package(
  name: "YourProject",
  dependencies: [
    .package(
        url: "https://github.com/FormatterKit/DayPeriodFormatter",
        from: "0.0.2"
    ),
  ]
)

Then run the swift build command to build your project.

License

MIT

Contact

Mattt (@mattt)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].