Skip to content

Commit

Permalink
Merge pull request nukeop#350 from charjac/FIX/I18N
Browse files Browse the repository at this point in the history
fix(i18n): add missing code for nl locale (my bad)
  • Loading branch information
nukeop authored Jun 9, 2019
2 parents 41d7ebb + 2b3b304 commit 2d088db
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';

import { bestNewItemShape } from '..';

import styles from './styles.scss';

const BestNewMusicCard = ({
Expand Down Expand Up @@ -31,7 +29,11 @@ const BestNewMusicCard = ({
};

BestNewMusicCard.propTypes = {
item: bestNewItemShape,
item: PropTypes.shape({
title: PropTypes.string,
artist: PropTypes.string,
thumbnail: PropTypes.string
}),
onClick: PropTypes.func
};

Expand Down
2 changes: 1 addition & 1 deletion app/components/Downloads/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Downloads = props => {
{downloads.length === 0 && <EmptyState />}
{downloads.length > 0 && (
<React.Fragment>
<Header>{t('downloads')}</Header>
<Header>{t('header')}</Header>
<DownloadsList
items={downloads}
clearFinishedTracks={clearFinishedTracks}
Expand Down
3 changes: 2 additions & 1 deletion app/containers/SearchResultsContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const SearchResultsContainer = ({
unifiedSearchStarted,
playlistSearchStarted,
actions,
musicSources
musicSources,
history
}) => (
<SearchResults
artistSearchResults={artistSearchResults}
Expand Down
4 changes: 3 additions & 1 deletion app/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getOption, setOption } from './persistence/store';

import en from './locales/en.json';
import fr from './locales/fr.json';
import nl from './locales/nl.json';

const languageDetector = {
init: Function.prototype,
Expand All @@ -19,7 +20,8 @@ export const setupI18n = () => {
debug: process.env.NODE_ENV !== 'production',
resources: {
en,
fr
fr,
nl
},
interpolation: {
escapeValue: false
Expand Down

0 comments on commit 2d088db

Please sign in to comment.