xivapi / godestone

Go scraper for The Lodestone.
MIT License
8 stars 4 forks source link

Nameday as a NamedEntity instead of a string #23

Open bourgeoisor opened 1 year ago

bourgeoisor commented 1 year ago

Is your feature request related to a problem? Please describe. I have an app that is in the process of being translated, and I like the fact that this scraper provides most information in the 4 official game locales (EN, FR, DE, JA), but I notice that Nameday specifically is missing translations.

Describe the solution you'd like I'd like for Nameday to be a NamedEntity (that is, providing EN, FR, DE, and JA strings) rather than just a single English string.

Additional context Here's an example of what shows up in Lodestone, under different locales:

karashiiro commented 1 year ago

I've been looking for the corresponding game data for this and haven't found it yet, do you know which sheet has those (alternatively, any other authoritative source)?

bourgeoisor commented 1 year ago

Not sure of a game data sheet but I can definitely list what I know and what I can guess:

There are 12 moons (months), alternating between astral and umbral (in that order), so 1st Astral, 1st Umbral, 2nd Astral, 2nd Umbral, etc. Each moon has exactly 32 suns (days). With that (and looking at a handful of Lodestone profiles to cross-reference), the formats seem to be:

$S is the sun (day). $M_ABS is the moon (month), absolute to total [1-12]. $M_REL is the moon (month), relative to either Astral or Umbral [1-6].

EN: $S[st/th] Sun of the $M_REL[st/th] [Astral/Umbral] Moon FR: $S[re/e] soleil de la $M_REL[re/e] lune [astrale/ombrale] DE $S. Sonne im $M_REL. [Lichtmond/Schattenmond] JA: [星/霊]$M_REL($M_ABS月) $S日