vendor/assets/javascripts/locales/jquery.timeago.lv.js in rails-timeago-2.16.0 vs vendor/assets/javascripts/locales/jquery.timeago.lv.js in rails-timeago-2.17.1

- old
+ new

@@ -1,20 +1,30 @@ -//Latvian -jQuery.timeago.settings.strings["lv"] = { - prefixAgo: "pirms", - prefixFromNow: null, - suffixAgo: null, - suffixFromNow: "no šī brīža", - seconds: "%d sek.", - minute: "min.", - minutes: "%d min.", - hour: "st.", - hours: "%d st.", - day: "1 d.", - days: "%d d.", - month: "mēnesis.", - months: "%d mēnesis.", - year: "gads", - years: "%d gads", - wordSeparator: " ", - numbers: [] -}; +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['jquery'], factory); + } else if (typeof module === 'object' && typeof module.exports === 'object') { + factory(require('jquery')); + } else { + factory(jQuery); + } +}(function (jQuery) { + //Latvian + jQuery.timeago.settings.strings["lv"] = { + prefixAgo: "pirms", + prefixFromNow: null, + suffixAgo: null, + suffixFromNow: "no šī brīža", + seconds: "%d sek.", + minute: "min.", + minutes: "%d min.", + hour: "st.", + hours: "%d st.", + day: "1 d.", + days: "%d d.", + month: "mēnesis.", + months: "%d mēnesis.", + year: "gads", + years: "%d gads", + wordSeparator: " ", + numbers: [] + }; +}));