/latinDateExtension

A chrome extension to make your newtab show today's date in Latin

Primary LanguageTypeScriptMIT LicenseMIT

Screenshot of Extension

Table of Contents

Intro

You can install this Chrome extension from the webstore at this link.

This Chrome extension replaces your new tab with the image seen above. There's no better way to familiarize yourself with Latin ordinal numbers, days of the week, and monthly dates than to see them every day!

Features:

  • Roman year (ab urbe condita)
  • Christian year
  • Day of the week
  • Select holidays
  • Ordinal numbering
  • Mācrōns everywhere (!)
  • and of course the Latin monthly dating system

As a dev bonus, this repo now contains the most well-tested Latin date conversion utilities of any library anywhere - and in TypeScript, for maximum accessibility. You can read through it just to familiarize yourself with the Latin system. If there is interest I will break it out into a separate library.

Basics of Dates

Dates on the ides, nones and kalends are given in the ablative. Dates with ante are given in the accusative, so ante diem undecimum kalendas ianuarias. It's in the accusative because it expresses not the idea of being 'on' a certain day (like the ablative), but how long before the kalends it is. This system uses inclusive counting, so ad xi kal ian is 22nd Dec.

Dates one day before a key date are given with pridie and the accusative, e.g. pridie kalendas ianuarias.

Those rules taken verbatim from a post somewhere.

Usage

At the moment, this extension is not in the Chrome store. To use it, you'll have to follow the instructions below, but then you'll have it even when you are not running yarn dev!

Setup

  1. Clone this repository.
  2. Run yarn && yarn dev in a terminal after navigating to the directory
  3. Load Extension on Chrome a. Open - Chrome browser b. Access - chrome://extensions c. Check - Developer mode d. Find - Load unpacked extension e. Select - dist folder in this project (after dev or build)

Credit

Contributing

Feel free to open PRs or raise issues!

Publishing

A few notes to self on publishing this package.

  • It's best to have yarn dev running to ensure the zip file created is of the latest compiled version.
  • Then a zip file can be made with just zip -r latinDateZip dist
  • The Chrome publishing process is trivially simple, just ensure no unnecessary permissions are present. Also, images can be resized (as they are required to have strict dimensions) by opening in Preview, then Tools, Adjust Size, uncheck Scale Proportionally.