Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/repos/versionsTab.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const VERSION_ATTRIBUTE_LABEL_KEYS = {
autoexpand: 'repo.autoexpand',
expansion_url: 'repo.expansion_url',
revision_date: 'repo.revision_date',
versioning_mode: 'repo.versioning_mode',
extras: 'custom_attributes.label',
'checksums.standard': 'checksums.standard',
'checksums.smart': 'checksums.smart',
Expand Down Expand Up @@ -95,6 +96,7 @@ const VERSION_ATTRIBUTE_ORDER = [
'autoexpand',
'expansion_url',
'revision_date',
'versioning_mode',
'extras',
'checksums.standard',
'checksums.smart',
Expand Down Expand Up @@ -126,6 +128,8 @@ export const getVersionAttributeFields = (version, t) => {
// the dialog renders a value only when it is truthy, so true/false needs a string
if(isBoolean(value))
info.value = value.toString();
if(field === 'versioning_mode' && value)
info.value = t(`repo.versioning_mode_${value}`, {defaultValue: startCase(value)});
fields[field] = info;
});
return fields;
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,10 @@
"could_not_clear_processing": "Could not clear the processing state",
"export_not_ready_tooltip": "Export is still being generated for this version",
"expansion_processing_tooltip": "This expansion is still being built",
"suggested_sources": "Suggested Sources"
"suggested_sources": "Suggested Sources",
"versioning_mode": "Versioning Mode",
"versioning_mode_carry_forward": "Carry Forward",
"versioning_mode_isolated": "Isolated"
},
"org": {
"my": "My Organizations",
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/locales/es/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,10 @@
"edit_title": "Editar versión de {{resourceType}}: {{version}}"
}
},
"repo_version": "Versión del repositorio"
"repo_version": "Versión del repositorio",
"versioning_mode": "Modo de versionado",
"versioning_mode_carry_forward": "Continuar desde HEAD",
"versioning_mode_isolated": "Aislado"
},
"org": {
"my": "Mis organizaciones",
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/locales/pt-BR/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,10 @@
"could_not_clear_processing": "Não foi possível limpar o estado de processamento",
"export_not_ready_tooltip": "Exportação ainda está sendo gerada para esta versão",
"expansion_processing_tooltip": "Esta expansão ainda está sendo construída",
"suggested_sources": "Sources sugeridos"
"suggested_sources": "Sources sugeridos",
"versioning_mode": "Modo de versionamento",
"versioning_mode_carry_forward": "Continuar a partir do HEAD",
"versioning_mode_isolated": "Isolado"
},
"org": {
"my": "Minhas organizações",
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/locales/zh/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@
"edit_title": "编辑{{resourceType}}版本:{{version}}"
}
},
"repo_version": "仓库版本"
"repo_version": "仓库版本",
"versioning_mode": "版本模式",
"versioning_mode_carry_forward": "沿用 HEAD",
"versioning_mode_isolated": "独立"
},
"org": {
"my": "我的组织机构",
Expand Down
Loading