Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setStashLocales(database, items) {
- let counter = 0;
- Object.keys(database.locales.global).forEach((localeName) => {
- const localeBase = database.locales.global[localeName];
- const standardTemplate = localeBase[constants_1.STANDARD_STASH_ID];
- items.forEach((item, idx) => {
- const stage = idx + 1;
- const interfaceId = `hideout_area_3_stage_{${stage}}_description`;
- const size = item._props.Grids[0]._props.cellsV;
- localeBase[interfaceId] = `Progressive Stash (10x${size})`;
- // if locale template does not exists
- if (!localeBase[item._id]) {
- // create locale template from standard template
- localeBase[item._id] = standardTemplate;
- counter = counter + 1;
- }
- });
- });
- return counter;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement