-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds the dist folder
- Loading branch information
Showing
41 changed files
with
3,229 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -16,5 +16,5 @@ | |
"type": "git", | ||
"url": "http://github.com/aurelia/i18n" | ||
}, | ||
"dependencies": { } | ||
"dependencies": {} | ||
} |
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,43 @@ | ||
define(['exports', 'babel-runtime/helpers/create-class', 'babel-runtime/helpers/class-call-check', './i18n', 'aurelia-event-aggregator'], function (exports, _babelRuntimeHelpersCreateClass, _babelRuntimeHelpersClassCallCheck, _i18n, _aureliaEventAggregator) { | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
|
||
var BaseI18N = (function () { | ||
(0, _babelRuntimeHelpersCreateClass['default'])(BaseI18N, null, [{ | ||
key: 'inject', | ||
value: [_i18n.I18N, Element, _aureliaEventAggregator.EventAggregator], | ||
enumerable: true | ||
}]); | ||
|
||
function BaseI18N(i18n, element, ea) { | ||
var _this = this; | ||
|
||
(0, _babelRuntimeHelpersClassCallCheck['default'])(this, BaseI18N); | ||
|
||
this.i18n = i18n; | ||
this.element = element; | ||
|
||
this.__i18nDisposer = ea.subscribe('i18n:locale:changed', function (payload) { | ||
_this.i18n.updateTranslations(_this.element); | ||
}); | ||
} | ||
|
||
(0, _babelRuntimeHelpersCreateClass['default'])(BaseI18N, [{ | ||
key: 'attached', | ||
value: function attached() { | ||
this.i18n.updateTranslations(this.element); | ||
} | ||
}, { | ||
key: 'detached', | ||
value: function detached() { | ||
this.__i18nDisposer(); | ||
} | ||
}]); | ||
return BaseI18N; | ||
})(); | ||
|
||
exports.BaseI18N = BaseI18N; | ||
}); |
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,232 @@ | ||
define(["exports", "module"], function (exports, module) { | ||
"use strict"; | ||
|
||
module.exports = { | ||
ar: { | ||
translation: { | ||
"now": "الآن", | ||
"second_ago": "منذ __count__ ثانية", | ||
"second_ago_plural": "منذ __count__ ثواني", | ||
"second_in": "في __count__ ثانية", | ||
"second_in_plural": "في __count__ ثواني", | ||
"minute_ago": "منذ __count__ دقيقة", | ||
"minute_ago_plural": "منذ __count__ دقائق", | ||
"minute_in": "في __count__ دقيقة", | ||
"minute_in_plural": "في __count__ دقائق", | ||
"hour_ago": "منذ __count__ ساعة", | ||
"hour_ago_plural": "منذ __count__ ساعات", | ||
"hour_in": "في __count__ ساعة", | ||
"hour_in_plural": "في __count__ ساعات", | ||
"day_ago": "منذ __count__ يوم", | ||
"day_ago_plural": "منذ __count__ أيام", | ||
"day_in": "في __count__ يوم", | ||
"day_in_plural": "في __count__ أيام" | ||
} | ||
}, | ||
en: { | ||
translation: { | ||
"now": "just now", | ||
"second_ago": "__count__ second ago", | ||
"second_ago_plural": "__count__ seconds ago", | ||
"second_in": "in __count__ second", | ||
"second_in_plural": "in __count__ seconds", | ||
"minute_ago": "__count__ minute ago", | ||
"minute_ago_plural": "__count__ minutes ago", | ||
"minute_in": "in __count__ minute", | ||
"minute_in_plural": "in __count__ minutes", | ||
"hour_ago": "__count__ hour ago", | ||
"hour_ago_plural": "__count__ hours ago", | ||
"hour_in": "in __count__ hour", | ||
"hour_in_plural": "in __count__ hours", | ||
"day_ago": "__count__ day ago", | ||
"day_ago_plural": "__count__ days ago", | ||
"day_in": "in __count__ day", | ||
"day_in_plural": "in __count__ days", | ||
"month_ago": "__count__ month ago", | ||
"month_ago_plural": "__count__ months ago", | ||
"month_in": "in __count__ month", | ||
"month_in_plural": "in __count__ months", | ||
"year_ago": "__count__ year ago", | ||
"year_ago_plural": "__count__ years ago", | ||
"year_in": "in __count__ year", | ||
"year_in_plural": "in __count__ years" | ||
} | ||
}, | ||
de: { | ||
translation: { | ||
"now": "jetzt gerade", | ||
"second_ago": "vor __count__ Sekunde", | ||
"second_ago_plural": "vor __count__ Sekunden", | ||
"second_in": "in __count__ Sekunde", | ||
"second_in_plural": "in __count__ Sekunden", | ||
"minute_ago": "vor __count__ Minute", | ||
"minute_ago_plural": "vor __count__ Minuten", | ||
"minute_in": "in __count__ Minute", | ||
"minute_in_plural": "in __count__ Minuten", | ||
"hour_ago": "vor __count__ Stunde", | ||
"hour_ago_plural": "vor __count__ Stunden", | ||
"hour_in": "in __count__ Stunde", | ||
"hour_in_plural": "in __count__ Stunden", | ||
"day_ago": "vor __count__ Tag", | ||
"day_ago_plural": "vor __count__ Tagen", | ||
"day_in": "in __count__ Tag", | ||
"day_in_plural": "in __count__ Tagen", | ||
"month_ago": "vor __count__ Monat", | ||
"month_ago_plural": "vor __count__ Monaten", | ||
"month_in": "in __count__ Monat", | ||
"month_in_plural": "in __count__ Monaten", | ||
"year_ago": "vor __count__ Jahr", | ||
"year_ago_plural": "vor __count__ Jahren", | ||
"year_in": "in __count__ Jahr", | ||
"year_in_plural": "in __count__ Jahren" | ||
} | ||
}, | ||
nl: { | ||
translation: { | ||
"now": "zonet", | ||
"second_ago": "__count__ seconde geleden", | ||
"second_ago_plural": "__count__ seconden geleden", | ||
"second_in": "in __count__ seconde", | ||
"second_in_plural": "in __count__ seconden", | ||
"minute_ago": "__count__ minuut geleden", | ||
"minute_ago_plural": "__count__ minuten geleden", | ||
"minute_in": "in __count__ minuut", | ||
"minute_in_plural": "in __count__ minuten", | ||
"hour_ago": "__count__ uur geleden", | ||
"hour_ago_plural": "__count__ uren geleden", | ||
"hour_in": "in __count__ uur", | ||
"hour_in_plural": "in __count__ uren", | ||
"day_ago": "__count__ dag geleden", | ||
"day_ago_plural": "__count__ dagen geleden", | ||
"day_in": "in __count__ dag", | ||
"day_in_plural": "in __count__ dagen" | ||
} | ||
}, | ||
fr: { | ||
translation: { | ||
"now": "juste", | ||
"second_ago": "__count__ seconde passé", | ||
"second_ago_plural": "__count__ secondes passé", | ||
"second_in": "en __count__ seconde", | ||
"second_in_plural": "en __count__ secondes", | ||
"minute_ago": "__count__ minute passé", | ||
"minute_ago_plural": "__count__ minutes passé", | ||
"minute_in": "en __count__ minute", | ||
"minute_in_plural": "en __count__ minutes", | ||
"hour_ago": "__count__ heure passé", | ||
"hour_ago_plural": "__count__ heures passé", | ||
"hour_in": "en __count__ heure", | ||
"hour_in_plural": "en __count__ heures", | ||
"day_ago": "__count__ jour passé", | ||
"day_ago_plural": "__count__ jours passé", | ||
"day_in": "en __count__ jour", | ||
"day_in_plural": "en __count__ jours" | ||
} | ||
}, | ||
th: { | ||
translation: { | ||
"now": "เมื่อกี้", | ||
"second_ago": "__count__ วินาที ที่ผ่านมา", | ||
"second_ago_plural": "__count__ วินาที ที่ผ่านมา", | ||
"second_in": "อีก __count__ วินาที", | ||
"second_in_plural": "อีก __count__ วินาที", | ||
"minute_ago": "__count__ นาที ที่ผ่านมา", | ||
"minute_ago_plural": "__count__ นาที ที่ผ่านมา", | ||
"minute_in": "อีก __count__ นาที", | ||
"minute_in_plural": "อีก __count__ นาที", | ||
"hour_ago": "__count__ ชั่วโมง ที่ผ่านมา", | ||
"hour_ago_plural": "__count__ ชั่วโมง ที่ผ่านมา", | ||
"hour_in": "อีก __count__ ชั่วโมง", | ||
"hour_in_plural": "อีก __count__ ชั่วโมง", | ||
"day_ago": "__count__ วัน ที่ผ่านมา", | ||
"day_ago_plural": "__count__ วัน ที่ผ่านมา", | ||
"day_in": "อีก __count__ วัน", | ||
"day_in_plural": "อีก __count__ วัน" | ||
} | ||
}, | ||
sv: { | ||
translation: { | ||
"now": "just nu", | ||
"second_ago": "__count__ sekund sedan", | ||
"second_ago_plural": "__count__ sekunder sedan", | ||
"second_in": "om __count__ sekund", | ||
"second_in_plural": "om __count__ sekunder", | ||
"minute_ago": "__count__ minut sedan", | ||
"minute_ago_plural": "__count__ minuter sedan", | ||
"minute_in": "om __count__ minut", | ||
"minute_in_plural": "om __count__ minuter", | ||
"hour_ago": "__count__ timme sedan", | ||
"hour_ago_plural": "__count__ timmar sedan", | ||
"hour_in": "om __count__ timme", | ||
"hour_in_plural": "om __count__ timmar", | ||
"day_ago": "__count__ dag sedan", | ||
"day_ago_plural": "__count__ dagar sedan", | ||
"day_in": "om __count__ dag", | ||
"day_in_plural": "om __count__ dagar" | ||
} | ||
}, | ||
da: { | ||
translation: { | ||
"now": "lige nu", | ||
"second_ago": "__count__ sekunder siden", | ||
"second_ago_plural": "__count__ sekunder siden", | ||
"second_in": "om __count__ sekund", | ||
"second_in_plural": "om __count__ sekunder", | ||
"minute_ago": "__count__ minut siden", | ||
"minute_ago_plural": "__count__ minutter siden", | ||
"minute_in": "om __count__ minut", | ||
"minute_in_plural": "om __count__ minutter", | ||
"hour_ago": "__count__ time siden", | ||
"hour_ago_plural": "__count__ timer siden", | ||
"hour_in": "om __count__ time", | ||
"hour_in_plural": "om __count__ timer", | ||
"day_ago": "__count__ dag siden", | ||
"day_ago_plural": "__count__ dage siden", | ||
"day_in": "om __count__ dag", | ||
"day_in_plural": "om __count__ dage" | ||
} | ||
}, | ||
no: { | ||
translation: { | ||
"now": "akkurat nå", | ||
"second_ago": "__count__ sekund siden", | ||
"second_ago_plural": "__count__ sekunder siden", | ||
"second_in": "om __count__ sekund", | ||
"second_in_plural": "om __count__ sekunder", | ||
"minute_ago": "__count__ minutt siden", | ||
"minute_ago_plural": "__count__ minutter siden", | ||
"minute_in": "om __count__ minutt", | ||
"minute_in_plural": "om __count__ minutter", | ||
"hour_ago": "__count__ time siden", | ||
"hour_ago_plural": "__count__ timer siden", | ||
"hour_in": "om __count__ time", | ||
"hour_in_plural": "om __count__ timer", | ||
"day_ago": "__count__ dag siden", | ||
"day_ago_plural": "__count__ dager siden", | ||
"day_in": "om __count__ dag", | ||
"day_in_plural": "om __count__ dager" | ||
} | ||
}, | ||
jp: { | ||
translation: { | ||
"now": "たった今", | ||
"second_ago": "__count__ 秒前", | ||
"second_ago_plural": "__count__ 秒前", | ||
"second_in": "あと __count__ 秒", | ||
"second_in_plural": "あと __count__ 秒", | ||
"minute_ago": "__count__ 分前", | ||
"minute_ago_plural": "__count__ 分前", | ||
"minute_in": "あと __count__ 分", | ||
"minute_in_plural": "あと __count__ 分", | ||
"hour_ago": "__count__ 時間前", | ||
"hour_ago_plural": "__count__ 時間前", | ||
"hour_in": "あと __count__ 時間", | ||
"hour_in_plural": "あと __count__ 時間", | ||
"day_ago": "__count__ 日間前", | ||
"day_ago_plural": "__count__ 日間前", | ||
"day_in": "あと __count__ 日間", | ||
"day_in_plural": "あと __count__ 日間" | ||
} | ||
} | ||
}; | ||
}); |
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 @@ | ||
define(['exports', 'babel-runtime/helpers/create-class', 'babel-runtime/helpers/class-call-check', './i18n'], function (exports, _babelRuntimeHelpersCreateClass, _babelRuntimeHelpersClassCallCheck, _i18n) { | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
|
||
var DfValueConverter = (function () { | ||
(0, _babelRuntimeHelpersCreateClass['default'])(DfValueConverter, null, [{ | ||
key: 'inject', | ||
value: function inject() { | ||
return [_i18n.I18N]; | ||
} | ||
}]); | ||
|
||
function DfValueConverter(i18n) { | ||
(0, _babelRuntimeHelpersClassCallCheck['default'])(this, DfValueConverter); | ||
|
||
this.service = i18n; | ||
} | ||
|
||
(0, _babelRuntimeHelpersCreateClass['default'])(DfValueConverter, [{ | ||
key: 'toView', | ||
value: function toView(value, formatOptions, locale, dateFormat) { | ||
var df = dateFormat || this.service.df(formatOptions, locale || this.service.getLocale()); | ||
|
||
return df.format(value); | ||
} | ||
}]); | ||
return DfValueConverter; | ||
})(); | ||
|
||
exports.DfValueConverter = DfValueConverter; | ||
}); |
Oops, something went wrong.