javascript-time-ago icon indicating copy to clipboard operation
javascript-time-ago copied to clipboard

add Occitan

Open Mejans opened this issue 4 years ago • 10 comments

Mejans avatar Aug 22 '21 19:08 Mejans

There doesn't seem to exist any oc language data in CLDR: https://unpkg.com/browse/[email protected]/main/

That means that you'd have to add the required standard labels types too:

  • long
  • short
  • narrow

There also exists Catalan language under the ca folder: https://unpkg.com/browse/[email protected]/main/ca/dateFields.json

Also, looking at mini.json, it seems like it could be reduced even further. For example:

{
    "minute": {
        "one": "{0} minuta",
        "other": "{0} minutas"
    },
    "second": {
        "one": "{0} segonda",
        "other": "{0} segondas"
    }
}

To something like:

{
    "minute": "{0} min",
    "second": "{0} s"
}

catamphetamine avatar Aug 23 '21 06:08 catamphetamine

Hello, Occitan is in the seed folder of CLDR. Yes I could reduce it, will try to make the changes today

Mejans avatar Aug 23 '21 06:08 Mejans

Hello, Occitan is in the seed folder of CLDR.

Not understand.

Yes I could reduce it, will try to make the changes today

Sure, no hurry.

catamphetamine avatar Aug 23 '21 06:08 catamphetamine

This folder: https://github.com/unicode-org/cldr/blob/master/seed/main/oc.xml

;)

Mejans avatar Aug 23 '21 06:08 Mejans

Wow, I don't even know what "seeding" is. Ok.

catamphetamine avatar Aug 23 '21 07:08 catamphetamine

I suppose it's like "draft", like the flower is not ready to bloom. Only supposition ^^

Mejans avatar Aug 23 '21 07:08 Mejans

So I have to add: "year-short": { etc

for month, year and week? Or some more?

Mejans avatar Aug 23 '21 08:08 Mejans

@Mejans

  1. Shorten mini.json labels
  2. Add an oc.json file like this: https://unpkg.com/browse/[email protected]/locale/fr.json . You can put it in locale-more-styles folder.

catamphetamine avatar Aug 23 '21 09:08 catamphetamine

I hope it's okay now :)

Mejans avatar Sep 12 '21 19:09 Mejans

@Mejans The oc.json file doesn't look like a JSON file.

catamphetamine avatar Sep 13 '21 09:09 catamphetamine