Skip to content

Commit

Permalink
UHF-9300: Merge branch 'main' of https://github.com/City-of-Helsinki/…
Browse files Browse the repository at this point in the history
…drupal-hdbt into UHF-9300
  • Loading branch information
teroelonen committed Jul 15, 2024
2 parents d6133f5 + 8f0b3c7 commit 35fa7aa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 0 additions & 3 deletions backstop/onBefore.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
module.exports = async (page, scenario, vp, isReference, browserContext, config) => {
await page.emulateMedia({ reducedMotion: 'reduce' });
// Wait until all assets have been loaded. Image style generation
// can sometimes take a long time, causing random failures.
// await page.waitForLoadState('networkidle');

const { hostname } = config;

Expand Down
Binary file added dist/js/hyphenopoly/patterns/en-us.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/js/hyphenopoly_settings.min.js

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

7 changes: 5 additions & 2 deletions src/js/hyphenopoly_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ document.addEventListener('DOMContentLoaded', function enableHyphenopoly() {
// eslint-disable-next-line no-undef
Hyphenopoly.config({
require: {
'fi': 'yhdyssanahirviö',
'fi': 'arvopaperimarkkinalainsäädäntö',
'sv': 'informationssäkerhetskampanj',
'en': 'supercalifragilisticexpialidocious'
},
fallbacks: {
'en': 'en-us'
},
setup: {
selectors: {
'.hyphenate': {}
}
},
},
handleEvent: {
error (e) {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ module.exports = (env, argv) => {
'to': path.resolve(__dirname, 'dist') + '/js/hyphenopoly/',
'force': true,
}, {
'from': 'node_modules/hyphenopoly/min/patterns/{fi,sv}.wasm',
'from': 'node_modules/hyphenopoly/min/patterns/{fi,sv,en-us}.wasm',
'to': path.resolve(__dirname, 'dist', 'js/hyphenopoly/patterns', '[name][ext]'),
'force': true,
}
Expand Down

0 comments on commit 35fa7aa

Please sign in to comment.