Juris-M / legal-resource-registry

Jurisdiction ID and abbreviation data files for using with Jurism and other projects.
MIT License
31 stars 37 forks source link

Cannot define jurisdiction specific court names #39

Closed sam-gagnon closed 2 years ago

sam-gagnon commented 3 years ago

In the Readme, it is listed that it should be possible to override the court names with a jurisdiction specific court name defined in that jurisdiction :

"zz:west": { "name": "West", "abbrev": "W.", "courts": { "court.appeal": { "name": "Court of Error", "abbrev": "%s Ct. Err" } } } }

I need to implement this for Canada, in order to get the CanLII translator I've been working on fonctionnal. This is my code for the Court of Appeal for Ontario :

"ca:on": { "name": "Ontario", "abbrev": "Ont", "ABBREV": "ON", "courts": { "court.appeal": { "name": "Court of Appeal for Ontario", "variants": { "fr": { "name": "Court d'appel de l'Ontario", "abbrev": "CA %s" } } }

However, I'm not seeing the jurisdiction specific court names show up in either the UI, the maps file, or the abbreviation files.

Is there something I'm doing wrong?

fbennett commented 3 years ago

Are UI and abbrevs enabled for fr in the langs object?

sam-gagnon commented 3 years ago

Yes.

The jurisdiction specific court name isn't showing up in either french or english anywhere in the ui, the maps file or the abbreviations files.

sam-gagnon commented 3 years ago

This is the file I'm working on if you want to see : https://github.com/Droitslinguistiques/legal-resource-registry/blob/master/src/juris-ca-desc.json