You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Guys, has anyone ever tried using tap-i18n-db package with collections using the collection2 package? i tried a lot of stuff but couldn't get it working...would love to see some of your sample code! thanks and cheers!
The text was updated successfully, but these errors were encountered:
For me it works great together. A little trick I noticed: add field i18n to SimpleSchema
Posts=newTAPi18n.Collection('posts')Posts.attachSchema(newSimpleSchema({title: {type: String,}// all translations is inside this fieldi18n: {type: Object,// important for skip validationblackbox: true,optional: true}}
But it code has some danger side effects!
Any "hacker" :) can save to i18n filed any structure and overwrite document, so before updateTranslations function we need to validate data manually.
Hey Guys, has anyone ever tried using tap-i18n-db package with collections using the collection2 package? i tried a lot of stuff but couldn't get it working...would love to see some of your sample code! thanks and cheers!
The text was updated successfully, but these errors were encountered: