mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-05-01 03:19:29 +08:00
This keeps the translation size very small and makes it easy to integrate all the languages, as dynamically loading them isn't easy in the service worker.
9 lines
203 B
JavaScript
9 lines
203 B
JavaScript
// This somewhat mysterious module
|
|
module.exports = function(source) {
|
|
var object = JSON.parse(source)
|
|
var smol = {
|
|
notifications: object.notifications || {}
|
|
}
|
|
|
|
return JSON.stringify(smol)
|
|
}
|