Fix projects curated row

Changed the localization string to use a placeholder to allow translators to re-order if needed.

Also added preview-faq to the transifex config.
This commit is contained in:
chrisgarrity 2018-01-29 14:21:56 -05:00
parent 57cc6f8770
commit a7532c49db
3 changed files with 11 additions and 4 deletions

View file

@ -133,3 +133,9 @@ file_filter = localizations/conference-index/<lang>.json
source_file = src/views/conference/2018/index/l10n.json
source_lang = en
type = KEYVALUEJSON
[scratch-website.preview-faq-l10njson]
file_filter = localizations/preview-faq/<lang>.json
source_file = src/views/preview-faq/l10n.json
source_lang = en
type = KEYVALUEJSON

View file

@ -1,7 +1,7 @@
{
"splash.featuredProjects": "Featured Projects",
"splash.featuredStudios": "Featured Studios",
"splash.projectsCuratedBy": "Projects Curated by",
"splash.projectsCuratedBy": "Projects Curated by {curatorId}",
"splash.scratchDesignStudioTitle": "Scratch Design Studio",
"splash.visitTheStudio": "Visit the studio",
"splash.recentlySharedProjects": "Recently Shared Projects",

View file

@ -261,9 +261,10 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
moreTitle={this.props.intl.formatMessage({
id: 'general.learnMore'
})}
title={
`${this.props.intl.formatMessage({id: 'splash.projectsCuratedBy'})}' '${curatorName}`
}
title={this.props.intl.formatMessage(
{id: 'splash.projectsCuratedBy'},
{curatorId: curatorName}
)}
>
<LegacyCarousel items={this.props.featuredGlobal.curator_top_projects} />
</Box>