Skip to content

Commit

Permalink
Merge pull request #259 from yext/hotfix/v1.12.1
Browse files Browse the repository at this point in the history
Version 1.12.1
  • Loading branch information
yen-tt committed Sep 22, 2021
2 parents d422b44 + aeb3540 commit 2942350
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jambo",
"version": "1.12.0",
"version": "1.12.1",
"description": "A JAMStack implementation using Handlebars",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/commands/build/sitesgenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ class SitesGenerator {
const translationFileName =
localizationConfig.getTranslationFile(locale) || `${locale}.po`;
const translationFilePath = path.join(translationsDir, translationFileName);
const isDefaultLocale = (locale === localizationConfig.getDefaultLocale());
if (!isDefaultLocale && fs.existsSync(translationFilePath)) {
if (fs.existsSync(translationFilePath)) {
const localeTranslations = await localFileParser
.fetch(locale, translationFileName);
translations[locale] = { translation: localeTranslations };
Expand Down

0 comments on commit 2942350

Please sign in to comment.