accordproject / template-archive

Smart Legal Contracts & Templating System
https://accordproject.org/projects/cicero/
Apache License 2.0
280 stars 119 forks source link

Support for Concerto Vocabularies #711

Open mttrbrts opened 2 years ago

mttrbrts commented 2 years ago

Feature Request 🛍️

With support for locale-specific vocabularies in Concerto, we can now expose locale variants to users of Cicero templates

Use Case

A localised Cicero template would allow reuse of the model and logic definition but with different text and terms depending on a user's locale.

For example, a contract written for Canadian law, could have text and model terms in both en-ca and fr-ca.

Possible Solution

A vocabulary for a template's model should follow the implementation that was recently created for Concerto.

Templates should include text for each locale that they support, with a default locale identified for backwards compatibility.

Open questions:

  1. Where should .voc files live in a Cicero template?
  2. Is a locale-specific parser useful?

Context

Detailed Description

amanag25 commented 2 years ago

@mttrbrts can you elaborate on this a bit more, like what are we trying to achieve here by using vocabularies.

mttrbrts commented 2 years ago

Thanks @amanag25 , I've added a little more detail.

This idea isn't well formed yet, and some discussion in this issue would be helpful before any code is written.

Do you have any suggestions?