Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow language-specific type and field name options #332

Open
alexander-yevsyukov opened this issue Feb 13, 2019 · 0 comments
Open

Allow language-specific type and field name options #332

alexander-yevsyukov opened this issue Feb 13, 2019 · 0 comments

Comments

@alexander-yevsyukov
Copy link
Contributor

alexander-yevsyukov commented Feb 13, 2019

Protobuf supports only ASCII names. We cannot have commands in, say, Russian or Chinese. This introduces some difficulties of mapping results of EventStorming (which is obviously conducted in a native language of the domain experts) to the code and back.

Although we cannot change Protobuf, we can provide options that would allow labelling model elements names in a native language. We still would have everything in the proto code defined presumably in English, but options placed alongside would ease the mapping. Also, since options are available in run-time, we'd be able to show diagnostics in native language too.

Here's how it may look:

message CreateUser {
     option (name) = {ru: "Создать пользователя", en_US: "Create User"};
     string id = 1 [ (name).ru = "идентификатор" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant