tlvince-react-timeago
Version:
A simple Time-Ago component for ReactJs
36 lines (32 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
// Finnish
var strings = {
prefixAgo: null,
prefixFromNow: null,
suffixAgo: 'sitten',
suffixFromNow: 'tulevaisuudessa',
seconds: 'alle minuutti',
minute: 'minuutti',
minutes: '%d minuuttia',
hour: 'tunti',
hours: '%d tuntia',
day: 'päivä',
days: '%d päivää',
month: 'kuukausi',
months: '%d kuukautta',
year: 'vuosi',
years: '%d vuotta'
};
exports.default = strings;
// The above is not a great localization because one would usually
// write "2 days ago" in Finnish as "2 päivää sitten", however
// one would write "2 days into the future" as "2:n päivän päästä"
// which cannot be achieved with localization support this simple.
// This is because Finnish has word suffixes (attached directly
// to the end of the word). The word "day" is "päivä" in Finnish.
// As workaround, the above localizations will say
// "2 päivää tulevaisuudessa" which is understandable but
// not as fluent.