@wuchale/json
Patch Changes
Section titled “Patch Changes”- Updated dependencies [
3c88ee9]:- wuchale@0.25.0
Minor Changes
Section titled “Minor Changes”-
⚠️ BREAKING: Composable storage:
dirconfig inpofileandjsonstorage changed tolocation,separateUrlsremoved. (#382)The
dirconfig which was used to set the directory under which to save catalog storages is now replaced bylocationwhich gives more control. Inpofileit should be a file path pattern with{locale}as a placeholder. If you useseparateUrls(which wastrueby default), you should now use the newstorageByTypelayer:import { pofile } from 'wuchale'import { pofile, storageByType } from 'wuchale'export default {// ...adapters: {main: svelte({// ...storage: pofile({dir: 'src/locales'}),storage: storageByType({message: pofile({location: 'src/locales/{locale}.po'}),url: pofile({location: 'src/locales/{locale}.url.po'})}),}),}}storageByTypereturns a storage itself, but if you don’t need to separate the items, you can opt not to use it. But it also opens the possibility of storing URL translations in another format for example.
Patch Changes
Section titled “Patch Changes”-
Include placeholders in nested messages also indicating nesting like
0.0.1(2005ea1) -
Updated dependencies [
2005ea1,89b650b,94ce7fc,4899ae6,f903655,4bbbbae,589fbca,4922b03,3567c7f,2521033,5063533,6d5e244]:- wuchale@0.24.0