Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap all text in i18next functions #1087

Merged
merged 14 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion packages/app/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { Icon } from 'semantic-ui-react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { NavLink, withRouter } from 'react-router-dom';

import classnames from 'classnames';
import _ from 'lodash';
import Sound from 'react-hifi';
import { withTranslation } from 'react-i18next';
import { PluginConfig } from '@nuclear/core';

import * as SearchActions from './actions/search';
import * as PlayerActions from './actions/player';
import * as PlaylistsActions from './actions/playlists';
Expand Down
24 changes: 2 additions & 22 deletions packages/i18n/src/locales/af_ZA.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"plugins": "Plugins",
"search": "Search Results",
"settings": "Settings",
"visualizer": "Visualizer",
"version": "Version"
"visualizer": "Visualizer"
},
"artist": {
"count": "Play counts",
Expand Down Expand Up @@ -57,18 +56,6 @@
"name": "Name",
"status": "Status"
},
"equalizer": {
"classical": "Classical",
"club": "Club",
"custom": "Custom",
"default": "Default",
"full-bass": "Full Bass",
"full-treble": "Full Treble",
"pop": "Pop",
"presets": "Presets",
"reggae": "Reggae",
"rock": "Rock"
},
"favorite-albums": {
"empty": "No favorite albums",
"empty-help": "Try adding some albums to favorites and they will appear here!",
Expand All @@ -88,7 +75,6 @@
},
"help": {
"about": "About Nuclear Music Player",
"contributors": "Our top 10 Contributors",
"header": "Desktop music player for streaming from free sources",
"released": "released under AGPL-3.0",
"report": "Submit issues or new features",
Expand Down Expand Up @@ -198,17 +184,14 @@
"search": {
"album": "Album",
"album_plural": "Albums",
"all": "All",
"artist": "Artist",
"artist_plural": "Artists",
"clear-history": "Clear history",
"empty": "Nothing found.",
"last-searches": "Last searches",
"live-stream": "LiveStream",
"placeholder": "Search...",
"playlist": "Playlist",
"playlist_plural": "Playlists",
"podcast": "Podcast",
"queue-add": "Add all tracks to queue",
"track": "Track",
"track_plural": "Tracks",
Expand Down Expand Up @@ -249,7 +232,6 @@
"lastfm-description": "In order to enable scrobbling, you first have to connect and authorize Nuclear on Last.fm, then click log in.",
"lastfm-enable": "Enable scrobbling to Last.fm",
"lastfm-title": "Last.fm",
"less": "Less",
"login": "Log in",
"logout": "Log out",
"loop-after-queue-end": "Loop after playing the last queue item",
Expand All @@ -263,13 +245,11 @@
"mastodon-post-format-label": "Post format",
"mastodon-title": "",
"mini-player": "Use mini player style",
"more": "More",
"discord-rich-presence": "Toggle discord rich presence (requires restart)",
"notification-timeout": "Notification timeout",
"notlogged": "Not logged in",
"playback": "Playback",
"program-settings": "Program settings",
"saving-in": "Saving in:",
"seek-iteration": "Number of seconds to seek forward/backwards when pressing arrow keys",
"shuffle-queue": "Shuffle songs",
"shuffle-when-going-back": "Shuffle on previous track",
Expand Down Expand Up @@ -316,4 +296,4 @@
"visualizer": {
"exit-fullscreen": "Press ESC to exit full screen"
}
}
}
24 changes: 2 additions & 22 deletions packages/i18n/src/locales/ar_SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"plugins": "Plugins",
"search": "Search Results",
"settings": "Settings",
"visualizer": "Visualizer",
"version": "Version"
"visualizer": "Visualizer"
},
"artist": {
"count": "Play counts",
Expand Down Expand Up @@ -57,18 +56,6 @@
"name": "Name",
"status": "Status"
},
"equalizer": {
"classical": "Classical",
"club": "Club",
"custom": "Custom",
"default": "Default",
"full-bass": "Full Bass",
"full-treble": "Full Treble",
"pop": "Pop",
"presets": "Presets",
"reggae": "Reggae",
"rock": "Rock"
},
"favorite-albums": {
"empty": "No favorite albums",
"empty-help": "Try adding some albums to favorites and they will appear here!",
Expand All @@ -88,7 +75,6 @@
},
"help": {
"about": "About Nuclear Music Player",
"contributors": "Our top 10 Contributors",
"header": "Desktop music player for streaming from free sources",
"released": "released under AGPL-3.0",
"report": "Submit issues or new features",
Expand Down Expand Up @@ -198,17 +184,14 @@
"search": {
"album": "Album",
"album_plural": "Albums",
"all": "All",
"artist": "Artist",
"artist_plural": "Artists",
"clear-history": "Clear history",
"empty": "Nothing found.",
"last-searches": "Last searches",
"live-stream": "LiveStream",
"placeholder": "Search...",
"playlist": "Playlist",
"playlist_plural": "Playlists",
"podcast": "Podcast",
"queue-add": "Add all tracks to queue",
"track": "Track",
"track_plural": "Tracks",
Expand Down Expand Up @@ -249,7 +232,6 @@
"lastfm-description": "In order to enable scrobbling, you first have to connect and authorize Nuclear on Last.fm, then click log in.",
"lastfm-enable": "Enable scrobbling to Last.fm",
"lastfm-title": "Last.fm",
"less": "Less",
"login": "Log in",
"logout": "Log out",
"loop-after-queue-end": "Loop after playing the last queue item",
Expand All @@ -263,13 +245,11 @@
"mastodon-post-format-label": "Post format",
"mastodon-title": "",
"mini-player": "Use mini player style",
"more": "More",
"discord-rich-presence": "Toggle discord rich presence (requires restart)",
"notification-timeout": "Notification timeout",
"notlogged": "Not logged in",
"playback": "Playback",
"program-settings": "Program settings",
"saving-in": "Saving in:",
"seek-iteration": "Number of seconds to seek forward/backwards when pressing arrow keys",
"shuffle-queue": "Shuffle songs",
"shuffle-when-going-back": "Shuffle on previous track",
Expand Down Expand Up @@ -316,4 +296,4 @@
"visualizer": {
"exit-fullscreen": "Press ESC to exit full screen"
}
}
}
24 changes: 2 additions & 22 deletions packages/i18n/src/locales/bn_BD.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"plugins": "Plugins",
"search": "Search Results",
"settings": "Settings",
"visualizer": "Visualizer",
"version": "Version"
"visualizer": "Visualizer"
},
"artist": {
"count": "Play counts",
Expand Down Expand Up @@ -57,18 +56,6 @@
"name": "Name",
"status": "Status"
},
"equalizer": {
"classical": "Classical",
"club": "Club",
"custom": "Custom",
"default": "Default",
"full-bass": "Full Bass",
"full-treble": "Full Treble",
"pop": "Pop",
"presets": "Presets",
"reggae": "Reggae",
"rock": "Rock"
},
"favorite-albums": {
"empty": "No favorite albums",
"empty-help": "Try adding some albums to favorites and they will appear here!",
Expand All @@ -88,7 +75,6 @@
},
"help": {
"about": "About Nuclear Music Player",
"contributors": "Our top 10 Contributors",
"header": "Desktop music player for streaming from free sources",
"released": "released under AGPL-3.0",
"report": "Submit issues or new features",
Expand Down Expand Up @@ -198,17 +184,14 @@
"search": {
"album": "Album",
"album_plural": "Albums",
"all": "All",
"artist": "Artist",
"artist_plural": "Artists",
"clear-history": "Clear history",
"empty": "Nothing found.",
"last-searches": "Last searches",
"live-stream": "LiveStream",
"placeholder": "Search...",
"playlist": "Playlist",
"playlist_plural": "Playlists",
"podcast": "Podcast",
"queue-add": "Add all tracks to queue",
"track": "Track",
"track_plural": "Tracks",
Expand Down Expand Up @@ -249,7 +232,6 @@
"lastfm-description": "In order to enable scrobbling, you first have to connect and authorize Nuclear on Last.fm, then click log in.",
"lastfm-enable": "Enable scrobbling to Last.fm",
"lastfm-title": "Last.fm",
"less": "Less",
"login": "Log in",
"logout": "Log out",
"loop-after-queue-end": "Loop after playing the last queue item",
Expand All @@ -263,13 +245,11 @@
"mastodon-post-format-label": "Post format",
"mastodon-title": "",
"mini-player": "Use mini player style",
"more": "More",
"discord-rich-presence": "Toggle discord rich presence (requires restart)",
"notification-timeout": "Notification timeout",
"notlogged": "Not logged in",
"playback": "Playback",
"program-settings": "Program settings",
"saving-in": "Saving in:",
"seek-iteration": "Number of seconds to seek forward/backwards when pressing arrow keys",
"shuffle-queue": "Shuffle songs",
"shuffle-when-going-back": "Shuffle on previous track",
Expand Down Expand Up @@ -316,4 +296,4 @@
"visualizer": {
"exit-fullscreen": "Press ESC to exit full screen"
}
}
}
24 changes: 2 additions & 22 deletions packages/i18n/src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"plugins": "Zásuvné moduly",
"search": "Výsledky vyhledávání",
"settings": "Nastavení",
"visualizer": "Visualizer",
"version": "Version"
"visualizer": "Visualizer"
},
"artist": {
"count": "Počet přehrání",
Expand Down Expand Up @@ -57,18 +56,6 @@
"name": "Název",
"status": "Stav"
},
"equalizer": {
"classical": "Classical",
"club": "Club",
"custom": "Custom",
"default": "Default",
"full-bass": "Full Bass",
"full-treble": "Full Treble",
"pop": "Pop",
"presets": "Presets",
"reggae": "Reggae",
"rock": "Rock"
},
"favorite-albums": {
"empty": "Žádná oblíbená alba",
"empty-help": "Zkuste některá alba přidat mezi oblíbená a objeví se zde!",
Expand All @@ -88,7 +75,6 @@
},
"help": {
"about": "O hudebním přehrávači Nuclear",
"contributors": "Our top 10 Contributors",
"header": "Desktopový přehrávač hudby pro streamování z volně dostupných zdrojů",
"released": "Vydán pod licencí AGPL-3.0",
"report": "Submit issues or new features",
Expand Down Expand Up @@ -198,17 +184,14 @@
"search": {
"album": "Album",
"album_plural": "Albums",
"all": "All",
"artist": "Umělec",
"artist_plural": "Artists",
"clear-history": "Clear history",
"empty": "Nic nenalezeno.",
"last-searches": "Last searches",
"live-stream": "LiveStream",
"placeholder": "Vyhledat...",
"playlist": "Playlist",
"playlist_plural": "Seznamy skladeb",
"podcast": "Podcast",
"queue-add": "Přidat všechny skladby do fronty",
"track": "Track",
"track_plural": "Tracks",
Expand Down Expand Up @@ -249,7 +232,6 @@
"lastfm-description": "Pro automatické přidání poslouchaných skladeb do profilu se musíte nejprve připojit a autorizovat Nuclear k Last.fm, poté kliknout na přihlásit se.",
"lastfm-enable": "Povolit automatické přidání poslouchaných skladeb do profilu na Last.fm",
"lastfm-title": "Last.fm",
"less": "Less",
"login": "Přihlásit",
"logout": "Odhlásit",
"loop-after-queue-end": "Smyčka po přehrání poslední položky ve frontě",
Expand All @@ -263,13 +245,11 @@
"mastodon-post-format-label": "Post format",
"mastodon-title": "",
"mini-player": "Use mini player style",
"more": "More",
"discord-rich-presence": "Toggle discord rich presence (requires restart)",
"notification-timeout": "Časový limit notifikace",
"notlogged": "Nepřihlášen",
"playback": "Playback",
"program-settings": "Nastavení programu",
"saving-in": "Saving in:",
"seek-iteration": "Počet vteřin posunu vpřed/zpět po stisknutí kláves šipek",
"shuffle-queue": "Zamíchat skladby",
"shuffle-when-going-back": "Zamíchat při přechodu na předchozí skladbu",
Expand Down Expand Up @@ -316,4 +296,4 @@
"visualizer": {
"exit-fullscreen": "Press ESC to exit full screen"
}
}
}
Loading