Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-proto
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-proto
Commits
84225e06
Commit
84225e06
authored
2 weeks ago
by
Danis Kirasirov
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
0aed1eec
Branches
feature/3149-LocaleCodeAsID
No related tags found
1 merge request
!96
Draft: Добавлен флаг Default в объект локали
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/locales/locales.proto
+3
-2
3 additions, 2 deletions
proto/locales/locales.proto
with
3 additions
and
2 deletions
proto/locales/locales.proto
+
3
−
2
View file @
84225e06
...
...
@@ -7,14 +7,15 @@ option go_package = "git.perx.ru/perxis/perxis-go/proto/locales;locales";
package
content
.
locales
;
message
Locale
{
string
id
=
1
;
//
Идентификатор локали, генерируется автоматически. Для локали по умолчанию устанавливается как "default".
string
id
=
1
;
//
Код локали https://en.wikipedia.org/wiki/IETF_language_tag
string
space_id
=
2
;
// Идентификатор пространства.
string
name
=
3
;
// Название локали. Опционально, заполняется автоматически (Пример: russian, english)
string
native_name
=
4
;
// Название локали на языке локали. Опционально, заполняется автоматически (Пример: Русский, English)
string
code
=
5
;
//
Код локали https://en.wikipedia.org/wiki/IETF_language_tag
string
code
=
5
;
//
Deprecated (у старых локалей код хранится в этом поле)
string
fallback
=
6
;
// Идентификатор локали, который будет использоваться при отсутствии перевода
string
direction
=
7
;
// Направление письма - слева направо (ltr) или справа налево (rtl). По умолчанию устанавливается ltr.
int64
weight
=
8
;
// Вес локали.
bool
default
=
9
;
// Является локалью по умолчанию.
bool
no_publish
=
100
;
// Не публиковать контент данной локали. Не будет доступен контент через Delivery API. (кроме default)
bool
disabled
=
101
;
// Запретить использование локали. Нельзя создавать и редактировать контент для данной локали (кроме default)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment