Skip to content

Commit

Permalink
Set everything based on country
Browse files Browse the repository at this point in the history
  • Loading branch information
fuckingrobot committed Sep 21, 2020
1 parent 96d6c88 commit 5cf3f35
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions src/store/model/nvidia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@ import {
generateOpenCartAction
} from './helpers/nvidia';

/* FE 2060 SUPER debug IDs
USA: 5379432500
*/
export const fe2060SuperId = 5379432500;
const country = 'usa';

/* FE 3080 IDs
USA: 5379432500
*/
export const fe3080Id = 5438481700;
const fe2060SuperIds = {
usa: 5379432500
}

/* Locales
USA: en_us
*/
const locale = 'en_us';
const fe3080Ids = {
usa': 5438481700
}

const locales = {
usa: 'en_us'
}

const outOfStockLabels = {
usa: ['product_inventory_out_of_stock', 'rate limit exceeded', 'request timeout']
}

const fe2060SuperId = fe2060SuperIds[country];
const fe3080Id = fe3080Ids[country];
const locale = locales[country];

export const Nvidia: Store = {
links: [
Expand All @@ -37,7 +44,7 @@ export const Nvidia: Store = {
}
],
labels: {
outOfStock: ['product_inventory_out_of_stock', 'rate limit exceeded', 'request timeout']
outOfStock: outOfStockLabels[country]
},
name: 'nvidia'
};

0 comments on commit 5cf3f35

Please sign in to comment.