Skip to content

Commit

Permalink
Merge branch 'master' into 175-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored May 23, 2018
2 parents 16e2a3d + 9a0dd01 commit b228738
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@
"scripts": {
"test": "jest",
"lint": "./node_modules/.bin/eslint src/* test/* build/*",
"build": "BABEL_ENV=build node build",
"build": "BABEL_ENV=build node build && npm run size",
"sauce": "npx karma start karma.sauce.conf.js",
"test:sauce": "npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2 && npm run sauce -- 3",
"gzip-size": "gzip-size dayjs.min.js",
"size": "size-limit",
"postpublish": "npm run test:sauce"
},
"pre-commit": [
"lint"
],
"size-limit": [
{
"limit": "2.99 KB",
"path": "dayjs.min.js"
}
],
"jest": {
"roots": [
"test"
Expand Down Expand Up @@ -60,7 +66,6 @@
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.10.0",
"eslint-plugin-jest": "^21.15.0",
"gzip-size-cli": "^2.1.0",
"jasmine-core": "^2.99.1",
"jest": "^22.4.3",
"karma": "^2.0.2",
Expand All @@ -72,6 +77,7 @@
"rollup": "^0.57.1",
"rollup-plugin-babel": "^4.0.0-beta.4",
"rollup-plugin-uglify": "^3.0.0",
"size-limit": "^0.18.0",
"timeago.js": "^3.0.2",
"typescript": "^2.8.3"
},
Expand Down
12 changes: 12 additions & 0 deletions src/locale/bg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import dayjs from 'dayjs'

const locale = {
name: 'bg',
weekdays: 'Неделя_Понеделник_Вторник_Сряда_Четвъртък_Петък_Събота'.split('_'),
months: 'Януари_Февруари_Март_Април_Май_Юни_Юли_Август_Септември_Октомври_Ноември_Декември'.split('_'),
ordinal: n => `${n}.`
}

dayjs.locale(locale, null, true)

export default locale
13 changes: 13 additions & 0 deletions src/locale/fa.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

import dayjs from 'dayjs'

const locale = {
name: 'fa',
weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split('_'),
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
ordinal: n => n
}

dayjs.locale(locale, null, true)

export default locale
12 changes: 12 additions & 0 deletions src/locale/nl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import dayjs from 'dayjs'

const locale = {
name: 'nl',
weekdays: 'Zondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrijdag_Zaterdag'.split('_'),
months: 'Januari_Februari_Maart_April_Mei_Juni_Juli_Augustus_September_Oktober_November_December'.split('_'),
ordinal: n => `${n}.`
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit b228738

Please sign in to comment.