Skip to content

Commit

Permalink
Add Finnish translation
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Sep 21, 2018
1 parent 9b482d8 commit f5138c8
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This library was ported from the original C# implemenation called [cron-expressi
- Supports all cron expression special characters including * / , - ? L W, #
- Supports 5, 6 (w/ seconds or year), or 7 (w/ seconds and year) part cron expressions
- Supports [Quartz Job Scheduler](http://www.quartz-scheduler.org/) cron expressions
- i18n support with 21 languages
- i18n support with 22 languages

## Installation
cRonstrue is exported as an [UMD](https://github.com/umdjs/umd) module so it will work in an [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD), [CommonJS](http://wiki.commonjs.org/wiki/CommonJS) or browser global context.
Expand Down Expand Up @@ -107,6 +107,7 @@ cronstrue.toString("*/5 * * * *", { locale: "fr" });
- es - Spanish
- da - Danish
- de - German
- fi - Finnish
- fr - French
- he - Hebrew
- it - Italian
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"npm-check-updates": "^2.14.2",
"npm-github-release": "^0.9.0",
"octonode": "^0.9.3",
"pixl-xml": "^1.0.13",
"ts-loader": "^5.0.0",
"ts-node": "^7.0.1",
"typescript": "^3.0.3",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/allLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export { ja } from "./locales/ja";
export { he } from "./locales/he"; // Hebrew
export { cs } from "./locales/cs"; // Czech
export { sk } from "./locales/sk"; // Slovakian
export { fi } from "./locales/fi";
180 changes: 180 additions & 0 deletions src/i18n/locales/fi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
import { Locale } from "../locale";
export class fi implements Locale {
use24HourTimeFormatByDefault() {
return false;
}

anErrorOccuredWhenGeneratingTheExpressionD(): string {
return "Virhe kuvauksen generoinnissa. Tarkista cron-syntaksi.";
}
at(): string {
return "Klo";
}
atSpace(): string {
return "Klo";
}
atX0(): string {
return "klo %s";
}
atX0MinutesPastTheHour(): string {
return "%s minuuttia yli";
}
atX0MinutesPastTheHourGt20(): string {
return "%s minuuttia yli";
}
atX0SecondsPastTheMinute(): string {
return "%s sekunnnin jälkeen";
}
betweenX0AndX1(): string {
return "%s - %s välillä";
}
commaBetweenDayX0AndX1OfTheMonth(): string {
return ", kuukauden päivien %s ja %s välillä";
}
commaEveryDay(): string {
return ", joka päivä";
}
commaEveryHour(): string {
return ", joka tunti";
}
commaEveryMinute(): string {
return ", joka minuutti";
}
commaEveryX0Days(): string {
return ", joka %s. päivä";
}
commaEveryX0DaysOfTheWeek(): string {
return ", joka %s. viikonpäivä";
}
commaEveryX0Months(): string {
return ", joka %s. kuukausi";
}
commaEveryX0Years(): string {
return ", joka %s. vuosi";
}
commaOnDayX0OfTheMonth(): string {
return ", kuukauden %s päivä";
}
commaOnlyInX0(): string {
return ", vain %s";
}
commaOnlyOnX0(): string {
return ", vain %s";
}
commaOnThe(): string {
return ",";
}
commaOnTheLastDayOfTheMonth(): string {
return ", kuukauden viimeisenä päivänä";
}
commaOnTheLastWeekdayOfTheMonth(): string {
return ", kuukauden viimeisenä viikonpäivänä";
}
commaOnTheLastX0OfTheMonth(): string {
return ", kuukauden viimeinen %s";
}
commaOnTheX0OfTheMonth(): string {
return ", kuukauden %s";
}
commaX0ThroughX1(): string {
return ", %s - %s";
}
commaDaysBeforeTheLastDayOfTheMonth(): string {
return ", %s päivää ennen kuukauden viimeistä päivää";
}
commaStartingX0(): string {
return ", alkaen %s";
}
everyHour(): string {
return "joka tunti";
}
everyMinute(): string {
return "joka minuutti";
}
everyMinuteBetweenX0AndX1(): string {
return "joka minuutti %s - %s välillä";
}
everySecond(): string {
return "joka sekunti";
}
everyX0Hours(): string {
return "joka %s. tunti";
}
everyX0Minutes(): string {
return "joka %s. minuutti";
}
everyX0Seconds(): string {
return "joka %s. sekunti";
}
fifth(): string {
return "viides";
}
first(): string {
return "ensimmäinen";
}
firstWeekday(): string {
return "ensimmäinen viikonpäivä";
}
fourth(): string {
return "neljäs";
}
minutesX0ThroughX1PastTheHour(): string {
return "joka tunti minuuttien %s - %s välillä";
}
second(): string {
return "toinen";
}
secondsX0ThroughX1PastTheMinute(): string {
return "joka minuutti sekunttien %s - %s välillä";
}
spaceAnd(): string {
return "ja";
}
spaceAndSpace(): string {
return "ja";
}
spaceX0OfTheMonth(): string {
return "%s kuukaudessa";
}
third(): string {
return "kolmas";
}
weekdayNearestDayX0(): string {
return "viikonpäivä lähintä %s päivää";
}
atX0SecondsPastTheMinuteGt20(): string {
return null;
}
commaMonthX0ThroughMonthX1(): string {
return null;
}
commaYearX0ThroughYearX1(): string {
return null;
}
lastDay() {
return "viimeinen päivä";
}
commaAndOnX0() {
return ", ja edelleen %s";
}
daysOfTheWeek() {
return ["maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai", "sunnuntai"];
}

monthsOfTheYear() {
return [
"tammikuu",
"helmikuu",
"maaliskuu",
"huhtikuu",
"toukokuu",
"kesäkuu",
"heinäkuu",
"elokuu",
"syyskuu",
"lokakuu",
"marraskuu",
"joulukuu"
];
}
}

0 comments on commit f5138c8

Please sign in to comment.