mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 20:28:40 -05:00
fix(lang): correct strings for library sync button & user import toast (#1252)
* fix(lang): 'scan plex libraries' should actually be 'sync' * fix(lang): also fix user import string in case of no imported users * fix(lang): remove unused 'User Rating' strings
This commit is contained in:
@@ -35,7 +35,6 @@ import StatusBadge from '../StatusBadge';
|
||||
|
||||
const messages = defineMessages({
|
||||
releasedate: 'Release Date',
|
||||
userrating: 'User Rating',
|
||||
status: 'Status',
|
||||
revenue: 'Revenue',
|
||||
budget: 'Budget',
|
||||
|
||||
@@ -50,8 +50,8 @@ const messages = defineMessages({
|
||||
plexlibraries: 'Plex Libraries',
|
||||
plexlibrariesDescription:
|
||||
'The libraries Overseerr scans for titles. Set up and save your Plex connection settings, then click the button below if no libraries are listed.',
|
||||
scanning: 'Scanning…',
|
||||
scan: 'Scan Plex Libraries',
|
||||
scanning: 'Syncing…',
|
||||
scan: 'Sync Libraries',
|
||||
manualscan: 'Manual Library Scan',
|
||||
manualscanDescription:
|
||||
"Normally, this will only be run once every 24 hours. Overseerr will check your Plex server's recently added more aggressively. If this is your first time configuring Plex, a one-time full manual library scan is recommended!",
|
||||
|
||||
@@ -39,7 +39,6 @@ import StatusBadge from '../StatusBadge';
|
||||
const messages = defineMessages({
|
||||
firstAirDate: 'First Air Date',
|
||||
nextAirDate: 'Next Air Date',
|
||||
userrating: 'User Rating',
|
||||
status: 'Status',
|
||||
originallanguage: 'Original Language',
|
||||
overview: 'Overview',
|
||||
|
||||
@@ -29,7 +29,8 @@ const messages = defineMessages({
|
||||
importfromplex: 'Import Users from Plex',
|
||||
importfromplexerror: 'Something went wrong while importing users from Plex.',
|
||||
importedfromplex:
|
||||
'{userCount, plural, =0 {No new users} one {# new user} other {# new users}} imported from Plex successfully!',
|
||||
'{userCount, plural, one {# new user} other {# new users}} imported from Plex successfully!',
|
||||
nouserstoimport: 'No new users to import from Plex.',
|
||||
user: 'User',
|
||||
totalrequests: 'Total Requests',
|
||||
accounttype: 'Account Type',
|
||||
@@ -171,9 +172,11 @@ const UserList: React.FC = () => {
|
||||
'/api/v1/user/import-from-plex'
|
||||
);
|
||||
addToast(
|
||||
intl.formatMessage(messages.importedfromplex, {
|
||||
userCount: createdUsers.length,
|
||||
}),
|
||||
createdUsers.length
|
||||
? intl.formatMessage(messages.importedfromplex, {
|
||||
userCount: createdUsers.length,
|
||||
})
|
||||
: intl.formatMessage(messages.nouserstoimport),
|
||||
{
|
||||
autoDismiss: true,
|
||||
appearance: 'success',
|
||||
|
||||
Reference in New Issue
Block a user