forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hotfix/1.7.1
* master: Adding note about jsfiddle Adding contributing file as per https://github.com/blog/1184-contributing-guidelines Romanian (ro) translation with tests
- Loading branch information
Showing
4 changed files
with
343 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Submitting Issues | ||
================= | ||
|
||
If you are submitting a bug with moment, please create a [jsfiddle](http://jsfiddle.net/) demonstrating the issue. | ||
|
||
Contributing | ||
============ | ||
|
||
To contribute, fork the library and install these npm packages. | ||
|
||
npm install jshint uglify-js nodeunit | ||
|
||
You can add tests to the files in `/test/moment` or add a new test file if you are adding a new feature. | ||
|
||
To run the tests, do `make test` to run all tests, `make test-moment` to test the core library, and `make test-lang` to test all the languages. | ||
|
||
To check the filesize, you can use `make size`. | ||
|
||
To minify all the files, use `make moment` to minify moment, `make langs` to minify all the lang files, or just `make` to minfy everything. | ||
|
||
If your code passes the unit tests (including the ones you wrote), submit a pull request. | ||
|
||
Submitting pull requests | ||
======================== | ||
|
||
Moment.js now uses [git-flow](https://github.com/nvie/gitflow). If you're not familiar with git-flow, please read up on it, you'll be glad you did. | ||
|
||
When submitting new features, please create a new feature branch using `git flow feature start <name>` and submit the pull request to the `develop` branch. | ||
|
||
Pull requests for enhancements for features should be submitted to the `develop` branch as well. | ||
|
||
When submitting a bugfix, please check if there is an existing bugfix branch. If the latest stable version is `1.5.0`, the bugfix branch would be `hotfix/1.5.1`. All pull requests for bug fixes should be on a `hotfix` branch, unless the bug fix depends on a new feature. | ||
|
||
The `master` branch should always have the latest stable version. When bugfix or minor releases are needed, the develop/hotfix branch will be merged into master and released. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// moment.js language configuration | ||
// language : romanian (ro) | ||
// author : Vlad Gurdiga : https://github.com/gurdiga | ||
// author : Valentin Agachi : https://github.com/avaly | ||
(function () { | ||
var lang = { | ||
months : "Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"), | ||
monthsShort : "Ian_Feb_Mar_Apr_Mai_Iun_Iul_Aug_Sep_Oct_Noi_Dec".split("_"), | ||
weekdays : "Duminică_Luni_Marţi_Miercuri_Joi_Vineri_Sâmbătă".split("_"), | ||
weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"), | ||
weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"), | ||
longDateFormat : { | ||
LT : "H:mm", | ||
L : "DD/MM/YYYY", | ||
LL : "D MMMM YYYY", | ||
LLL : "D MMMM YYYY H:mm", | ||
LLLL : "dddd, D MMMM YYYY H:mm" | ||
}, | ||
calendar : { | ||
sameDay: "[azi la] LT", | ||
nextDay: '[mâine la] LT', | ||
nextWeek: 'dddd [la] LT', | ||
lastDay: '[ieri la] LT', | ||
lastWeek: '[fosta] dddd [la] LT', | ||
sameElse: 'L' | ||
}, | ||
relativeTime : { | ||
future : "peste %s", | ||
past : "%s în urmă", | ||
s : "câteva secunde", | ||
m : "un minut", | ||
mm : "%d minute", | ||
h : "o oră", | ||
hh : "%d ore", | ||
d : "o zi", | ||
dd : "%d zile", | ||
M : "o lună", | ||
MM : "%d luni", | ||
y : "un an", | ||
yy : "%d ani" | ||
}, | ||
ordinal : function (number) { | ||
return ''; | ||
} | ||
}; | ||
|
||
// Node | ||
if (typeof module !== 'undefined') { | ||
module.exports = lang; | ||
} | ||
// Browser | ||
if (typeof window !== 'undefined' && this.moment && this.moment.lang) { | ||
this.moment.lang('ro', lang); | ||
} | ||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.