Skip to content

Commit

Permalink
Added locale en-GB (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
glintik authored and kossnocorp committed Sep 18, 2017
1 parent e5ec2d5 commit 5e0b6b6
Show file tree
Hide file tree
Showing 5 changed files with 485 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/locale/en-GB/_lib/formatLong/index.js
@@ -0,0 +1,12 @@
import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js'

var formatLong = buildFormatLongFn({
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm'
})

export default formatLong
27 changes: 27 additions & 0 deletions src/locale/en-GB/index.js
@@ -0,0 +1,27 @@
import formatDistance from '../en-US/_lib/formatDistance/index.js'
import formatLong from './_lib/formatLong/index.js'
import formatRelative from '../en-US/_lib/formatRelative/index.js'
import localize from '../en-US/_lib/localize/index.js'
import match from '../en-US/_lib/match/index.js'

/**
* @type {Locale}
* @category Locales
* @summary English locale (United Kingdom).
* @language English
* @iso-639-2 eng
* @author Alex [@glintik]{@link https://github.com/glintik}
*/
var locale = {
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 1 /* Monday */,
firstWeekContainsDate: 4
}
}

export default locale
37 changes: 37 additions & 0 deletions src/locale/en-GB/index.js.flow
@@ -0,0 +1,37 @@
// @flow
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.

type Locale = {
formatDistance: Function,
formatLong: Function,
formatRelative: Function,
localize: {
ordinalNumber: Function,
weekday: Function,
weekdays: Function,
month: Function,
months: Function,
timeOfDay: Function,
timesOfDay: Function
},
match: {
ordinalNumbers: Function,
ordinalNumber: Function,
weekdays: Function,
weekday: Function,
months: Function,
month: Function,
timesOfDay: Function,
timeOfDay: Function
},
formatters?: Object,
formattingTokensRegExp?: RegExp,
units?: Object,
parsers?: Object,
parsingTokensRegExp?: RegExp,
options?: {
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6
}
}

declare module.exports: Locale

0 comments on commit 5e0b6b6

Please sign in to comment.