Exposing components for translation mapping; Queue and AAlbum views now moved to translation file

This commit is contained in:
James Barnsley
2020-07-06 20:22:39 +12:00
parent 1158fb7c2f
commit fca28ada88
9 changed files with 221 additions and 147 deletions

View File

@ -1,3 +1,41 @@
errors:
uri_not_found: Could not find anything with URI %{uri}
specs:
tracks: %{count} tracks
followers: %{count} followers
listeners: %{count} listeners
plays: %{count} plays
actions:
play: Play
pause: Pause
stop: Stop
add_to_library: Add to library
remove_from_library: Remove from library
time:
seconds:
short: secs
singular: second
plural: seconds
minutes:
short: mins
singular: minute
plural: minutes
hours:
short: hrs
singular: hour
plural: hours
days:
short: days
singular: day
plural: days
weeks:
short: wks
singular: week
plural: weeks
years:
short: yrs
singular: year
plural: years
sidebar:
now_playing: Now playing
search: Search
@ -20,9 +58,16 @@ now_playing:
history: History
add_uri: Add URI
current_track:
playing_from: Playling from
playing_from: Playing from
shuffle: Shuffle
clear: Clear
radio: Radio
album:
title: Album
title_window: %{name} by %{artist} (album)
wiki:
title: About
published: 'Published: %{date}'
search:
title: 'Search: %{term}'
context_actions:

View File

@ -8,7 +8,6 @@ const PARAMS_REG_EXP = '%{(.*?)}';
const paramsRegExp = new RegExp(PARAMS_REG_EXP, 'g');
const content = (path, params = {}, transform) => {
console.log(window.language);
const dictionary = dictionaries[window.language || 'en'] || dictionaries.en;
let value = get((dictionary), path, '');