proto_tran

Crates.ioproto_tran
lib.rsproto_tran
version0.1.36
created_at2025-03-10 09:38:50.028912+00
updated_at2025-06-25 09:25:06.691708+00
descriptionproto_tran
homepagehttps://github.com/i18n-site/tran/tree/dev/proto
repositoryhttps://github.com/i18n-site/tran.git
max_upload_size
id1586376
size16,954
i18n.site (i18nsite)

documentation

README

proto_tran : protobuf for i18n

syntax = "proto3";

message LangTxt
{
  uint32 lang = 1;
  string txt = 2;
}

enum Filetype {
  Md = 0;
  Yml = 1;
}

message UpdateLi
{
  Filetype filetype = 1;
  /* 源文本的语言 */
  uint32 src_lang = 2;
  bytes hash = 3;
  repeated LangTxt li = 4;
}

// 更新缓存的接口
message UpdateCache
{
  repeated UpdateLi update_li = 1 [ (rust.nullable_field) = false ];
}

// 翻译文件的接口
// message Tran
// {
//   uint32 from_lang = 1;
//   uint32 to_lang = 2;
//   string txt = 3;
//   // 术语替换放到客户端完成,
//   // repeated Term term_li = 4;
// }
Commit count: 0

cargo fmt