Skip to content

Commit

Permalink
feat(FEC-9465): internationalization (i18n) - player localization (#304)
Browse files Browse the repository at this point in the history
Copy the `translations` directory from `playkit-js-ui` (kaltura/playkit-js-ui#485) to the `dist` folder

Solves FEC-9465
  • Loading branch information
yairans authored Feb 16, 2020
1 parent 3dbca3d commit 6b33757
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion webpack.config.ott.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ 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',
ignore: ['en.i18n.json'],
transform: function(content) {
// minify json
return JSON.stringify(JSON.parse(content));
},
to: 'translations'
}])
];

if (PROD) {
Expand Down
11 changes: 10 additions & 1 deletion webpack.config.ovp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ 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',
ignore: ['en.i18n.json'],
transform: function(content) {
// minify json
return JSON.stringify(JSON.parse(content));
},
to: 'translations'
}])
];

if (PROD) {
Expand Down

0 comments on commit 6b33757

Please sign in to comment.