Skip to content

Commit

Permalink
refactor: flatten i18n strings
Browse files Browse the repository at this point in the history
  • Loading branch information
noaione committed May 3, 2023
1 parent a15f02d commit c210ac2
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 251 deletions.
127 changes: 53 additions & 74 deletions frontend/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,81 +201,53 @@
"noLogsFound": "No logs found"
},
"manualLogin": "Manual login",
"mediaInfo": {
"audioChannels": {
"name": "Audio channels:"
},
"audioCodec": {
"channels": "Channels:",
"layout": "Layout:",
"name": "Audio codec:",
"sampleRate": "Sample rate:",
"titles": "Audio | Audio {0}"
},
"embeddedImageCodec": {
"name": "Image codec:",
"titles": "Image | Image {0}"
},
"generic": {
"bitrate": "Bitrate:",
"codec": "Codec:",
"codecTag": "Codec tag:",
"container": "Container:",
"default": "Default:",
"external": "External:",
"forced": "Forced:",
"language": "Language:",
"path": "Path:",
"profile": "Profile:",
"size": "Size:",
"title": "Title:"
},
"name": "Media",
"subtitleCodec": {
"name": "Subtitle codec:",
"titles": "Subtitle | Subtitle {0}"
},
"title": "Media Info",
"videoCodec": {
"DoVi": {
"blPresent": "DV bl preset flag:",
"blSignalCompatibilityId": "DV bl signal compatibility ID:",
"elPresent": "DV el preset flag:",
"level": "DV level:",
"majorVersion": "DV version major:",
"minorVersion": "DV version minor:",
"profile": "DV profile:",
"rpuPresent": "DV rpu preset flag:",
"title": "DV title:"
},
"aspectRatio": "Aspect ratio:",
"bitdepth": "Bit depth:",
"colorPrimaries": "Color primaries:",
"colorRange": "Color range:",
"colorSpace": "Color space:",
"colorTransfer": "Color transfer:",
"frameRate": "Framerate:",
"isAnamorphic": "Anamorphic:",
"isAvc": "AVC:",
"isInterlaced": "Interlaced:",
"level": "Level:",
"name": "Video codec:",
"pixelFormat": "Pixel format:",
"refFrames": "Ref frames:",
"resolution": "Resolution:",
"titles": "Video | Video {0}",
"videoRange": "Video range:",
"videoRangeType": "Video range type:"
}
},
"mediaInfo": "Media Info",
"mediaInfoAudioChannelLayout": "Layout:",
"mediaInfoAudioChannels": "Channels:",
"mediaInfoAudioSampleRate": "Sample rate:",
"mediaInfoFileContainer": "Container:",
"mediaInfoFilePath": "Path:",
"mediaInfoFileSize": "Size:",
"mediaInfoFileTitle": "Title:",
"mediaInfoGenericBitrate": "Bitrate:",
"mediaInfoGenericCodec": "Codec:",
"mediaInfoGenericCodecTag": "Codec tag:",
"mediaInfoGenericIsDefault": "Default:",
"mediaInfoGenericIsExternal": "External:",
"mediaInfoGenericIsForced": "Forced:",
"mediaInfoGenericLanguage": "Language:",
"mediaInfoGenericProfile": "Profile:",
"mediaInfoTitlesAudioCodec": "Audio | Audio {0}",
"mediaInfoTitlesEmbeddedImageCodec": "Image | Image {0}",
"mediaInfoTitlesSubtitleCodec": "Subtitle | Subtitle {0}",
"mediaInfoTitlesVideoCodec": "Video | Video {0}",
"mediaInfoVideoAspectRatio": "Aspect ratio:",
"mediaInfoVideoBitDepth": "Bit depth:",
"mediaInfoVideoBitrate": "Bitrate:",
"mediaInfoVideoColorPrimaries": "Color primaries:",
"mediaInfoVideoColorRange": "Color range:",
"mediaInfoVideoColorSpace": "Color space:",
"mediaInfoVideoColorTransfer": "Color transfer:",
"mediaInfoVideoDoViBlPresent": "DoVi BL present:",
"mediaInfoVideoDoViBlSignalCompatId": "DV bl signal compatibility ID:",
"mediaInfoVideoDoViElPresent": "DV el preset flag:",
"mediaInfoVideoDoViLevel": "DV level:",
"mediaInfoVideoDoViMajorVersion": "DV version major:",
"mediaInfoVideoDoViMinorVersion": "DV version minor:",
"mediaInfoVideoDoViProfile": "DV profile:",
"mediaInfoVideoDoViRpuPresent": "DV rpu preset flag:",
"mediaInfoVideoDoViTitle": "DV title:",
"mediaInfoVideoFrameRate": "Framerate:",
"mediaInfoVideoIsAnamorphic": "Anamorphic:",
"mediaInfoVideoIsAvc": "AVC:",
"mediaInfoVideoIsInterlaced": "Interlaced:",
"mediaInfoVideoLevel": "Level:",
"mediaInfoVideoPixelFormat": "Pixel format:",
"mediaInfoVideoRange": "Video range:",
"mediaInfoVideoRangeType": "Video range type:",
"mediaInfoVideoRefFrames": "Ref frames:",
"mediaInfoVideoResolution": "Resolution:",
"menu": "Menu",
"refreshMetadata": "Refresh metadata",
"replaceAllMetadata": "Replace all metadata",
"refreshMetadataHint": "Metadata is refreshed based on settings and internet services that are enabled in the Dashboard",
"searchMissingMetadata": "Search for missing metadata",
"replaceExistingImages": "Replace existing images",
"scanForNewAndUpdatedFiles": "Scan for new and updated files",
"metadataRefreshQueued": "Metadata refresh enqueued",
"metadata": {
"source": "Source",
"sourceAll": "All",
Expand All @@ -284,6 +256,7 @@
},
"metadataEditor": "Metadata editor",
"metadataNoResultsMatching": "No results matching \"{search}\". Press enter to create a new one.",
"metadataRefreshQueued": "Metadata refresh enqueued",
"more": "More",
"moreLikeArtist": "More like {artist}",
"moreLikeThis": "More like this",
Expand Down Expand Up @@ -368,17 +341,23 @@
"rating": "Rating",
"refresh": "Refresh",
"refreshLibrary": "Refresh library",
"refreshMetadata": "Refresh metadata",
"refreshMetadataHint": "Metadata is refreshed based on settings and internet services that are enabled in the Dashboard",
"releaseDate": "Release date",
"remoteDevices": "Remote devices",
"replaceAllMetadata": "Replace all metadata",
"replaceExistingImages": "Replace existing images",
"resumable": "Resumable",
"resume": "Resume",
"role": "Role",
"save": "Save",
"saved": "Saved",
"scanForNewAndUpdatedFiles": "Scan for new and updated files",
"search": {
"name": "Search",
"topResults": "Top results"
},
"searchMissingMetadata": "Search for missing metadata",
"seasonEpisode": "Season {seasonNumber}, Episode {episodeNumber}",
"seasonEpisodeAbbrev": "S{seasonNumber} E{episodeNumber}",
"series": "Series",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Item/ItemMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const instantMixAction = {
* Item related actions
*/
const mediaInfoAction = {
title: t('mediaInfo.title'),
title: t('mediaInfo'),
icon: IMdiInformation,
action: (): void => {
mediaInfoDialog.value = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<template>
<media-detail-attr
v-if="stream.ColorSpace"
:label="t('mediaInfo.videoCodec.colorSpace')"
:label="t('mediaInfoVideoColorSpace')"
:value="stream.ColorSpace" />
<media-detail-attr
v-if="stream.ColorTransfer"
:label="t('mediaInfo.videoCodec.colorTransfer')"
:label="t('mediaInfoVideoColorTransfer')"
:value="stream.ColorTransfer" />
<media-detail-attr
v-if="stream.ColorPrimaries"
:label="t('mediaInfo.videoCodec.colorPrimaries')"
:label="t('mediaInfoVideoColorPrimaries')"
:value="stream.ColorPrimaries" />
<media-detail-attr
v-if="stream.ColorRange"
:label="t('mediaInfo.videoCodec.colorRange')"
:label="t('mediaInfoVideoColorRange')"
:value="stream.ColorRange" />
<media-detail-attr
v-if="stream.PixelFormat"
:label="t('mediaInfo.videoCodec.pixelFormat')"
:label="t('mediaInfoVideoPixelFormat')"
:value="stream.PixelFormat" />
</template>

Expand Down
Loading

0 comments on commit c210ac2

Please sign in to comment.