Skip to content

Commit

Permalink
Fix translation for username input
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavAndreasson committed Feb 9, 2024
1 parent 0bbb97a commit 0a5b5b8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ArtistInput = ({ handleSetArtist }) => {
}}
suggestions={artistList}
inputProps={{
placeholder: t("artistinput.artist"),
placeholder: t("settings.artist"),
value: artistName,
onChange: (e, { newValue }) => {
setArtistName(newValue || "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const UsernameInput = ({ discogsUsername, handleUpdateUsername }) => {
<i className="fas fa-user"></i>
<input
type="text"
placeholder="Discogs användarnamn"
placeholder={t("settings.username")}
value={user}
onChange={e => setUser(e.target.value)}
/>
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"startuser2": " in the user name field to fetch a record collection (the first time a collection is fetched it might take several minutes).",
"startartist": "You can also look at an artist and the records it has released. Enter the artists name it the field for artist."
},
"artistinput": {
"artist": "Artist"
},
"common": {
"ok": "OK"
},
Expand Down Expand Up @@ -45,7 +42,9 @@
"en": "English"
},
"layout": "Layout",
"columns": "Columns"
"columns": "Columns",
"username": "Discogs username",
"artist": "Artist"
},
"progress": {
"load": "Loading records",
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"startuser2": " i fältet för användarnamn för att hämta en skivsamling (första gången en skivsamling hämtas kan det ta några minuter).",
"startartist": "Du kan också titta på en artist och vilka skivor den har släppt. Fyll då in artistens namn i fältet för artist (artisten måste finnas i databasen för att den ska komma upp som alternativ)."
},
"artistinput": {
"artist": "Artist"
},
"common": {
"ok": "OK"
},
Expand Down Expand Up @@ -45,7 +42,9 @@
"en": "Engelska"
},
"layout": "Layout",
"columns": "Kolumner"
"columns": "Kolumner",
"username": "Discogs användarnamn",
"artist": "Artist"
},
"progress": {
"load": "Laddar skivor",
Expand Down
2 changes: 1 addition & 1 deletion records/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def to_dict(self):
"master": self.master,
"cover": self.cover_file.url if self.cover_file else self.cover,
"year": self.year,
"thumbnail": self.thumbnail_file.url if self.thumbnail_file else self.thumbnail,
"thumbnail": self.thumbnail_file.url if self.thumbnail_file else self.thumbnail, # type: ignore
"price": str(self.price) if self.price else None,
"genres": [genre.name for genre in self.genres.all()],
"updated": str(self.updated) if self.updated else None,
Expand Down

0 comments on commit 0a5b5b8

Please sign in to comment.