freetube/static
Aiz c9c522a2b1
Use Intl.RelativeTimeFormat() for premiere upcoming time left (#2610)
* Improve premiere timestamp

Removes the unesseccary parts of the timestamp, year and seconds.

displays month as long name (eg., March)

* fix linting... forgot to add the file again before commit.

* get and use current locale set in freetube

this fixes issues where os locale and freetube locale don't match

* use 'default' when no locale is set in freetube.

this defaults to system locale

* use i18n to get locale and format date with intl

* format date with intl.datetimeformat

forgot to add file again after changes...

* use intl relative time format to format upcomingTimeLeft

* rename timeUnitI18nKey to just timeUnit

It's no longer used as a key and is no longer partial
2022-09-24 23:23:45 +00:00
..
geolocations Create countries.json 2021-03-29 16:02:02 +00:00
locales Use Intl.RelativeTimeFormat() for premiere upcoming time left (#2610) 2022-09-24 23:23:45 +00:00
.gitkeep Push Latest Code to Repository 2020-02-16 13:30:00 -05:00
external-player-map.json External player choice 'None' translated in Settings (#2075) 2022-08-10 17:52:31 -04:00
invidious-instances.json Update invidious-instances.json (#2236) 2022-05-14 12:59:18 -04:00
manifest.json Add Initial PWA Functionality 2020-04-13 22:59:25 -04:00
pwabuilder-sw.js Remove console.logs (#2606) 2022-09-23 09:04:10 +08:00