Skip to content

Commit

Permalink
fixup! Compress translations on bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jotoeri committed Mar 23, 2021
1 parent 0f82fe5 commit 9b3f3da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TRANSLATIONS.forEach((lang) => {

for (const key in lang.translations) {
// Plural
if (lang.translations[key].plural) {
if (lang.translations[key].pluralId) {
translations[key] = {
msgid: key,
msgid_plural: lang.translations[key].pluralId,
Expand Down
1 change: 0 additions & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const translations = fs
// Plural
if ('msgid_plural'in json.translations[''][key]) {
translations[json.translations[''][key].msgid] = {
plural: true,
pluralId: json.translations[''][key].msgid_plural,
msgstr: json.translations[''][key].msgstr
}
Expand Down

0 comments on commit 9b3f3da

Please sign in to comment.