Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Removing obsolete translations

1u edited this page May 9, 2017 · 2 revisions

Delete unused messageformat translations from the DB:

  1. Remove the translations from the DB. Not sure both lines are needed but I'll check next time I do this.
    db.mfStrings.remove({removed:true})
    db.mfStrings.find().forEach(function(mfStr) { if (!db.mfStrings.findOne({ key: mfStr.key, lang: "en" })) { db.mfStrings.remove({ _id: mfStr._id}) } })
  1. Deploy Openki without the file server/mfAll.js. This step is needed to prevent Openki from loading the files from server/mfAll.js

  2. After the restart the removed translations are gone, you can then export the mfAll.js and commit it.