Skip to content

package.json and npm #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lib
test
build.xml
build.properties
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![npm version](https://badge.fury.io/js/jquery-format.svg)](https://badge.fury.io/js/jquery-format)

# jQuery Format

The jQuery Format plugin enables the formatting and parsing of dates and numbers. It's a
Expand All @@ -22,20 +24,20 @@ of the en_US locale. The locale can be globally configured using the following:

$.format.locale({
date: {
format: 'dddd, MMMM dd, yyyy h:mm:ss tt',
monthsFull: ['January','February','March','April','May','June','July','August','September','October','November','December'],
format: 'MMM dd, yyyy h:mm:ss a',
monthsFull: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthsShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
daysFull: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
daysShort: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
timeFormat: 'h:mm tt',
shortDateFormat: 'M/d/yyyy',
longDateFormat: 'dddd, MMMM dd, yyyy'
shortDateFormat: 'M/d/yyyy h:mm a',
longDateFormat: 'EEEE, MMMM dd, yyyy h:mm:ss a'
},
number: {
format: '#,##0.0#',
groupingSeparator: ',',
decimalSeparator: '.'
}
}
});

## Changes
Expand All @@ -60,4 +62,4 @@ of the en_US locale. The locale can be globally configured using the following:

### 12/23/2009 - jQuery Format 1.0

Initial release
Initial release
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "jquery-format",
"description": "The jQuery Format plugin enables the formatting and parsing of dates and numbers.",
"version": "1.3.1",
"author": "Rostislav Hristov",
"license": "MIT",
"main": "./src/jquery.format.js",
"repository": {
"type": "git",
"url": "https://github.com/asual/jquery-format"
},
"bugs": {
"url": "https://github.com/asual/jquery-format/issues"
},
"keywords": [
"format"
]
}
17 changes: 17 additions & 0 deletions src/i18n/tr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$.format.locale({
date: {
format: 'dd.MMM.yyyy HH:mm:ss',
monthsFull: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran',
'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
monthsShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
daysFull: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
daysShort: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
shortDateFormat: 'dd.MM.yyyy',
longDateFormat: 'dd MMMM yyyy EEEE HH:mm:ss'
},
number: {
format: '#,##0.00',
groupingSeparator: '.',
decimalSeparator: ','
}
});