-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from bradyholt/locales
Implement i18n
- Loading branch information
Showing
65 changed files
with
6,382 additions
and
423 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
charset = utf-8 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
import { Cronstrue } from "./cronstrue"; | ||
export = Cronstrue; |
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,2 @@ | ||
import { Cronstrue } from "./cronstrue"; | ||
export = Cronstrue; |
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
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,6 @@ | ||
import { Locale } from "./locale"; | ||
export interface LocaleLoader { | ||
load(availableLocales: { | ||
[name: string]: Locale; | ||
}): void; | ||
} |
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,14 @@ | ||
export { en } from "./locales/en"; | ||
export { de } from "./locales/de"; | ||
export { es } from "./locales/es"; | ||
export { fr } from "./locales/fr"; | ||
export { it } from "./locales/it"; | ||
export { nl } from "./locales/nl"; | ||
export { nb } from "./locales/nb"; | ||
export { pl } from "./locales/pl"; | ||
export { pt_BR } from "./locales/pt_BR"; | ||
export { ro } from "./locales/ro"; | ||
export { ru } from "./locales/ru"; | ||
export { tr } from "./locales/tr"; | ||
export { uk } from "./locales/uk"; | ||
export { zh_CN } from "./locales/zh_CN"; |
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,6 @@ | ||
import { Locale } from "./locale"; | ||
export declare class allLocalesLoader { | ||
load(availableLocales: { | ||
[name: string]: Locale; | ||
}): void; | ||
} |
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,6 @@ | ||
import { Locale } from "./locale"; | ||
export declare class enLocaleLoader { | ||
load(availableLocales: { | ||
[name: string]: Locale; | ||
}): void; | ||
} |
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
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,54 @@ | ||
import { Locale } from "../locale"; | ||
export declare class de implements Locale { | ||
AtX0SecondsPastTheMinuteGt20(): string; | ||
AtX0MinutesPastTheHourGt20(): string; | ||
ComaMonthX0ThroughMonthX1(): string; | ||
ComaYearX0ThroughYearX1(): string; | ||
Use24HourTimeFormatByDefault(): boolean; | ||
EveryMinute(): string; | ||
EveryHour(): string; | ||
AnErrorOccuredWhenGeneratingTheExpressionD(): string; | ||
AtSpace(): string; | ||
EveryMinuteBetweenX0AndX1(): string; | ||
At(): string; | ||
SpaceAnd(): string; | ||
EverySecond(): string; | ||
EveryX0Seconds(): string; | ||
SecondsX0ThroughX1PastTheMinute(): string; | ||
AtX0SecondsPastTheMinute(): string; | ||
EveryX0Minutes(): string; | ||
MinutesX0ThroughX1PastTheHour(): string; | ||
AtX0MinutesPastTheHour(): string; | ||
EveryX0Hours(): string; | ||
BetweenX0AndX1(): string; | ||
AtX0(): string; | ||
ComaEveryDay(): string; | ||
ComaEveryX0DaysOfTheWeek(): string; | ||
ComaX0ThroughX1(): string; | ||
First(): string; | ||
Second(): string; | ||
Third(): string; | ||
Forth(): string; | ||
Fifth(): string; | ||
ComaOnThe(): string; | ||
SpaceX0OfTheMonth(): string; | ||
ComaOnTheLastX0OfTheMonth(): string; | ||
ComaOnlyOnX0(): string; | ||
ComaEveryX0Months(): string; | ||
ComaOnlyInX0(): string; | ||
ComaOnTheLastDayOfTheMonth(): string; | ||
ComaOnTheLastWeekdayOfTheMonth(): string; | ||
FirstWeekday(): string; | ||
WeekdayNearestDayX0(): string; | ||
ComaOnTheX0OfTheMonth(): string; | ||
ComaEveryX0Days(): string; | ||
ComaBetweenDayX0AndX1OfTheMonth(): string; | ||
ComaOnDayX0OfTheMonth(): string; | ||
SpaceAndSpace(): string; | ||
ComaEveryMinute(): string; | ||
ComaEveryHour(): string; | ||
ComaEveryX0Years(): string; | ||
CommaStartingX0(): string; | ||
DaysOfTheWeek(): string[]; | ||
MonthsOfTheYear(): string[]; | ||
} |
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
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,54 @@ | ||
import { Locale } from "../locale"; | ||
export declare class es implements Locale { | ||
AtX0SecondsPastTheMinuteGt20(): string; | ||
AtX0MinutesPastTheHourGt20(): string; | ||
ComaMonthX0ThroughMonthX1(): string; | ||
ComaYearX0ThroughYearX1(): string; | ||
Use24HourTimeFormatByDefault(): boolean; | ||
AnErrorOccuredWhenGeneratingTheExpressionD(): string; | ||
At(): string; | ||
AtSpace(): string; | ||
AtX0(): string; | ||
AtX0MinutesPastTheHour(): string; | ||
AtX0SecondsPastTheMinute(): string; | ||
BetweenX0AndX1(): string; | ||
ComaBetweenDayX0AndX1OfTheMonth(): string; | ||
ComaEveryDay(): string; | ||
ComaEveryHour(): string; | ||
ComaEveryMinute(): string; | ||
ComaEveryX0Days(): string; | ||
ComaEveryX0DaysOfTheWeek(): string; | ||
ComaEveryX0Months(): string; | ||
ComaOnDayX0OfTheMonth(): string; | ||
ComaOnlyInX0(): string; | ||
ComaOnlyOnX0(): string; | ||
ComaOnThe(): string; | ||
ComaOnTheLastDayOfTheMonth(): string; | ||
ComaOnTheLastWeekdayOfTheMonth(): string; | ||
ComaOnTheLastX0OfTheMonth(): string; | ||
ComaOnTheX0OfTheMonth(): string; | ||
ComaX0ThroughX1(): string; | ||
EveryHour(): string; | ||
EveryMinute(): string; | ||
EveryMinuteBetweenX0AndX1(): string; | ||
EverySecond(): string; | ||
EveryX0Hours(): string; | ||
EveryX0Minutes(): string; | ||
EveryX0Seconds(): string; | ||
Fifth(): string; | ||
First(): string; | ||
FirstWeekday(): string; | ||
Forth(): string; | ||
MinutesX0ThroughX1PastTheHour(): string; | ||
Second(): string; | ||
SecondsX0ThroughX1PastTheMinute(): string; | ||
SpaceAnd(): string; | ||
SpaceAndSpace(): string; | ||
SpaceX0OfTheMonth(): string; | ||
Third(): string; | ||
WeekdayNearestDayX0(): string; | ||
ComaEveryX0Years(): string; | ||
CommaStartingX0(): string; | ||
DaysOfTheWeek(): string[]; | ||
MonthsOfTheYear(): string[]; | ||
} |
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,56 @@ | ||
import { Locale } from "../locale"; | ||
export declare class fr implements Locale { | ||
AtX0SecondsPastTheMinuteGt20(): string; | ||
AtX0MinutesPastTheHourGt20(): string; | ||
ComaMonthX0ThroughMonthX1(): string; | ||
ComaYearX0ThroughYearX1(): string; | ||
Use24HourTimeFormatByDefault(): boolean; | ||
EveryMinute(): string; | ||
EveryHour(): string; | ||
AnErrorOccuredWhenGeneratingTheExpressionD(): string; | ||
AtSpace(): string; | ||
EveryMinuteBetweenX0AndX1(): string; | ||
At(): string; | ||
SpaceAnd(): string; | ||
EverySecond(): string; | ||
EveryX0Seconds(): string; | ||
SecondsX0ThroughX1PastTheMinute(): string; | ||
AtX0SecondsPastTheMinute(): string; | ||
EveryX0Minutes(): string; | ||
MinutesX0ThroughX1PastTheHour(): string; | ||
AtX0MinutesPastTheHour(): string; | ||
EveryX0Hours(): string; | ||
BetweenX0AndX1(): string; | ||
AtX0(): string; | ||
ComaEveryDay(): string; | ||
ComaEveryX0DaysOfTheWeek(): string; | ||
ComaX0ThroughX1(): string; | ||
First(): string; | ||
Second(): string; | ||
Third(): string; | ||
Forth(): string; | ||
Fifth(): string; | ||
ComaOnThe(): string; | ||
SpaceX0OfTheMonth(): string; | ||
ComaOnTheLastX0OfTheMonth(): string; | ||
ComaOnlyOnX0(): string; | ||
ComaEveryX0Months(): string; | ||
ComaOnlyInX0(): string; | ||
ComaOnTheLastDayOfTheMonth(): string; | ||
ComaOnTheLastWeekdayOfTheMonth(): string; | ||
FirstWeekday(): string; | ||
WeekdayNearestDayX0(): string; | ||
ComaOnTheX0OfTheMonth(): string; | ||
ComaEveryX0Days(): string; | ||
ComaBetweenDayX0AndX1OfTheMonth(): string; | ||
ComaOnDayX0OfTheMonth(): string; | ||
SpaceAndSpace(): string; | ||
ComaEveryMinute(): string; | ||
ComaEveryHour(): string; | ||
ComaEveryX0Years(): string; | ||
ComaDaysX0ThroughX1(): string; | ||
WeekSpaceAndSpace(): string; | ||
CommaStartingX0(): string; | ||
DaysOfTheWeek(): string[]; | ||
MonthsOfTheYear(): string[]; | ||
} |
Oops, something went wrong.