Hi @ all
I’m a translator with little knowledge in programming. A couple of months ago I was testing some things with the fluent-web.js library (from this source https://github.com/projectfluent/fluent-web/tree/master/src). However, none of my projects work anymore - I only get blank pages now. I suspect the library is outdated and doesn’t work with the current Firefox version.
Installing Fluent.js from the github repository didn’t work for me. To be fair I didn’t know what I was doing.
Could anyone help out with a current version of the fluent.js file (like the one linked above)?
Hi! Thanks for bringing this to my attention!
I just released @fluent/dom 0.6.0 and @fluent/web 0.2.0! Both compatible with @fluent/bundle 0.14.0!
Please, test and let me know if that works!
Hi! Thank you for your help!
Unfortunately, my projects still don’t work. I now think that the problem was caused by one of the latest Firefox updates.
For reference: I linked the js library in the header and put data-l10n-id + args in a div element. The FTL files are in their locale folders. This worked fine a few months ago.
Do you have any idea what I could do?
Can you verify that the example works for you - https://github.com/projectfluent/fluent-web#quick-start ?
The only change that happened within the last 6 months that could affect you is that Firefox doesn’t allow to load files from file:/// anymore, so you need a local server. Can that be it?
Hi. Even I wasn’t able to run the example and the build fails while running the rollup_config.js script
This is error log that generated when I run npm start
fluent-web$ npm start
@fluent/web@0.2.1 start /home/yogita/Desktop/new PR/localization_demo/fluent-web
make -f makefile build & npx http-server ./
internal/fs/utils.js:308
throw err;
^
Error: ENOENT: no such file or directory, lstat '/home/yogita/Desktop/new'
at Object.realpathSync (fs.js:1728:7)
at runRollup (/home/yogita/Desktop/new PR/localization_demo/fluent-web/node_modules/rollup/dist/bin/rollup:1327:29)
at Object.<anonymous> (/home/yogita/Desktop/new PR/localization_demo/fluent-web/node_modules/rollup/dist/bin/rollup:1455:5)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: '/home/yogita/Desktop/new'
}
makefile:9: recipe for target 'fluent-web.js' failed
make: *** [fluent-web.js] Error 1