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
I would like to declare singular and plural strings outside gettextCatalog.getPlural. Case :
// js file where gettext cannot be injectedconstobjects=[{key: OBJECT1,singular: '',plural: '', ... },{key: OBJECT2,singular: '',plural: '', ... },]// usage :gettextCatalog.getPlural(n,object.singular,object.plural);
If I declare a gettext() function to tag the strings, getPlural never links with the plural string because the strings needs to be linked together as :
Activity
cmalard commentedon Mar 4, 2017
I found this solution with
getPlural... not sure I'll use it: