Skip to content

Commit

Permalink
[skip ci] market-description translation (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
madejackson authored Sep 21, 2024
1 parent cc6f538 commit 1bf04be
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/market/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type appDefinition struct {
Description string `json:"description"`
Url string `json:"url"`
LongDescription string `json:"longDescription"`
Translation languages `json:"translation"`
Tags []string `json:"tags"`
Repository string `json:"repository"`
Image string `json:"image"`
Expand All @@ -21,6 +22,32 @@ type appDefinition struct {
SupportedArchitectures []string `json:"supported_architectures"`
}

type languages struct {
En translationFields `json:"en"`
De translationFields `json:"de"`
DeCH translationFields `json:"de-CH"`
EnGB translationFields `json:"en-GB"`
Cn translationFields `json:"cn"`
Es translationFields `json:"es"`
Fr translationFields `json:"fr"`
Hi translationFields `json:"hi"`
Ir translationFields `json:"it"`
Jp translationFields `json:"jp"`
Kr translationFields `json:"kr"`
Nl translationFields `json:"nl"`
Pl translationFields `json:"pl"`
Pt translationFields `json:"pt"`
Ru translationFields `json:"ru"`
Tr translationFields `json:"tr"`
Ar translationFields `json:"ar"`
EnFUNNYSHAKESPEARE translationFields `json:"en-FUNNYSHAKESPEARE"`
}

type translationFields struct {
Description string `json:"description"`
LongDescription string `json:"longDescription"`
}

type marketDefinition struct {
Showcase []appDefinition `json:"showcase"`
All []appDefinition `json:"all"`
Expand Down

0 comments on commit 1bf04be

Please sign in to comment.