Skip to content

Commit

Permalink
feat(FEC-9465): internationalization (i18n) - player localization
Browse files Browse the repository at this point in the history
  • Loading branch information
yairans committed Feb 13, 2020
1 parent 3dbca3d commit 7495fc7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion webpack.config.ott.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ const plugins = [
__PACKAGE_URL__: JSON.stringify(packageData.repository.url),
__PLAYER_TYPE__: JSON.stringify(playerType),
__CONFIG_DOCS_URL__: JSON.stringify(configDocsUrl)
})
}),
new CopyPlugin([{
from: '../node_modules/@playkit-js/playkit-js-ui/translations',
transform: function(content) {
// minify json
return JSON.stringify(JSON.parse(content));
},
to: 'translations',
}])
];

if (PROD) {
Expand Down
10 changes: 9 additions & 1 deletion webpack.config.ovp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ const plugins = [
__PACKAGE_URL__: JSON.stringify(packageData.repository.url),
__PLAYER_TYPE__: JSON.stringify(playerType),
__CONFIG_DOCS_URL__: JSON.stringify(configDocsUrl)
})
}),
new CopyPlugin([{
from: '../node_modules/@playkit-js/playkit-js-ui/translations',
transform: function(content) {
// minify json
return JSON.stringify(JSON.parse(content));
},
to: 'translations',
}])
];

if (PROD) {
Expand Down

0 comments on commit 7495fc7

Please sign in to comment.