From 9d819eeb8d81c396ef033e0db7288a003aaa52fd Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 07:28:13 -0500 Subject: [PATCH 1/8] add i18n for en app --- content/i18n/en-US.yml | 203 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 201 insertions(+), 2 deletions(-) diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index 8d7fd51..028aa22 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -1,2 +1,201 @@ -App: - Title: 'Leder Light' +Common: + Company: Leder Games + AppName: Lederlight + + Actions: + AdvancedLong: Advanced Search + AdvancedShort: Advanced + SyntaxLong: Syntax Help + SyntaxShort: Syntax + ProductsLong: All Products + ProductsShort: Products + + Products: + Oath: Oath + Root: Root + +Meta: + Title: 'Leder Cards Spotlight' + +Components: + BelowTheFold: + Home: Home + + CategoryMain: '{{ Common.AppName }}' + LightMode: Light Mode + DarkMode: Dark Mode + + CategoryCards: Cards + Advanced: '{{ Common.Actions.AdvancedLong }}' + Syntax: '{{ Common.Actions.SyntaxLong }}' + Products: '{{ Common.Actions.ProductsLong }}' + + CategorySupport: Support + FAQ: FAQ + Ask: Ask a Question + + CategoryMore: More + GitHub: GitHub + Discord: Discord + + Copyright: The literal and graphical information presented on this site about Leder Games, including card images and symbols is copyright Leder Games. + + Header: + Advanced: '{{ Common.Actions.AdvancedShort }}' + Syntax: '{{ Common.Actions.SyntaxShort }}' + Products: '{{ Common.Actions.ProductsShort }}' + + Omnisearch: + LederGames: '{{ Common.Company }}' + Search: Search all of {{ selectedProduct }}... + +Pages: + Homepage: + SubText: is your go-to cardpanion for + + Actions: + Advanced: '{{ Common.Actions.AdvancedLong }}' + Syntax: '{{ Common.Actions.SyntaxLong }}' + Products: '{{ Common.Actions.ProductsLong }}' + + AdvancedSearch: + CardNameLabel: Card Name + CardNamePlaceholder: Search any card name + + ProductLabel: Product + ProductPlaceholder: Select product + + SubproductsLabel: Subproducts + SubproductsPlaceholder: Select subproducts + + TagsLabel: Tags + TagsPlaceholder: Select tags + + DefenseLabel: Defense + DefensePlaceholder: Defense + + CardCapacityLabel: Card Capacity + CardCapacityPlaceholder: Card Capacity + + NumberText: If left unspecified, will not be included in the search query + + Operators: + EqualTo: Equal To + NotEqualTo: Not Equal To + GreaterThan: Greater Than + LessThan: Less Than + GreaterThanOrEqualTo: Greater Than Or Equal To + LessThanOrEqualTo: Less Than Or Equal To + + Actions: + Search: Search + Reset: Reset + + SyntaxHelp: + Header: '{{ Common.AppName }} Search Reference' + Subheader: '{{ Common.AppName }} includes a large set of keywords and filters you can use to filter {{ Common.Company }} cards.' + + Operators: + ID: + Name: ID + Text: > + You can find cards that match a certain id by using the `id:` operator. + + This operator is special, you may also search without using the operator. + + Examples: + - example: OATH/1 + text: Find specifically the card matching the id OATH/1. + + - example: id:=OATH/1 + text: Find specifically the card matching the id OATH/1. + + - example: -id:OATH + text: Exclude all cards with the id OATH. + + Name: + Name: Name + Text: > + You can find cards that match a certain expansion by using the `name:` or `n:` operator. + + This operator is a loose-text operator, which means that you can use partial names. You can also specify multiple expansions by separating them with a comma. If a name has spaces in its name, you must use quotation marks around the name. + + Examples: + - example: Alchemist + text: Cards with "alchemist" in their name. + + - example: name:alchemist + text: Cards with "alchemist" in their name. + + - example: name:"=Alchemist" + text: Cards that are called exactly "Alchemist". + + - example: -name:"Alchemist" + text: Cards without "alchemist" in their name. + + Product: + Name: Product + Text: > + You can find cards that are associated with a certain product/game by using the `product:` operator. + + Examples: + - example: product:oath + text: Cards that belong to the Oath product. + + - example: -product:root + text: Cards that don't belong to the Root product. + + Subproduct: + Name: Subproduct + Text: > + You can find cards that are associated with a certain subproduct/expansion by using the `subproduct:` operator. + + Examples: + - example: subproduct:clockwork-1 + text: Cards that belong to the Clockwork 1 subproduct. + + - example: -subproduct:exiles-partisans + text: Cards that don't belong to the Exiles & Partisans subproduct. + + Tag: + Name: Tag + Text: > + You can find cards that have a certain tag by using the `tag:` search operator. Almost every card will have a tag. You can find a list of valid tags by using the advanced search page. + + Examples: + - example: tag:"Power" + text: Cards that have the Power tag. + + - example: tag:"Power,Arcane" + text: Cards that have the Power and Arcane tags. + + - example: tag:none + text: Cards with no tags. + + SearchResults: + NoResults: + Header: No results found + Subheader: For help using the search tool, check the + HelpGuide: help guide + + Results: + Sorter: + As: Cards as + AsImages: Images + AsText: Text + + Sorted: Sorted by + SortedName: Name + SortedID: ID + SortedProduct: Product + + Asc: Asc ↑ + Desc: Desc ↓ + + Pagination: + Previous: Previous + Next: Next 60 + + Card: + More: More + Rules: Rules From 28c90ddbde1bf18f056b37c8b80f944fe4c33f40 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 08:07:58 -0500 Subject: [PATCH 2/8] Reformat for ngx-translate instead --- README.md | 1 + content/i18n/en-US.yml | 35 ++++++++++++++++++++--------------- package.json | 1 + 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 1642e75..278dd16 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ This repository obtains and reformats cards for the Leder Spotlight application. - `npm run build:card-symbols` - move the card symbol icons - `npm run build:card-images` - move the card images - `npm run build:i18n` - build the i18n files and ensure that they're formatted correctly +- `npm run validate` - validate everything - `npm run validate:card-data` - validate the card data is formatted correctly ## Adding New Content diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index 028aa22..32328bd 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -17,18 +17,21 @@ Common: Meta: Title: 'Leder Cards Spotlight' +Languages: + en-US: English + Components: BelowTheFold: Home: Home - CategoryMain: '{{ Common.AppName }}' + #CategoryMain: '{{ Common.AppName }}' LightMode: Light Mode DarkMode: Dark Mode CategoryCards: Cards - Advanced: '{{ Common.Actions.AdvancedLong }}' - Syntax: '{{ Common.Actions.SyntaxLong }}' - Products: '{{ Common.Actions.ProductsLong }}' + #Advanced: '{{ Common.Actions.AdvancedLong }}' + #Syntax: '{{ Common.Actions.SyntaxLong }}' + #Products: '{{ Common.Actions.ProductsLong }}' CategorySupport: Support FAQ: FAQ @@ -40,23 +43,23 @@ Components: Copyright: The literal and graphical information presented on this site about Leder Games, including card images and symbols is copyright Leder Games. - Header: - Advanced: '{{ Common.Actions.AdvancedShort }}' - Syntax: '{{ Common.Actions.SyntaxShort }}' - Products: '{{ Common.Actions.ProductsShort }}' + #Header: + # Advanced: '{{ Common.Actions.AdvancedShort }}' + # Syntax: '{{ Common.Actions.SyntaxShort }}' + # Products: '{{ Common.Actions.ProductsShort }}' Omnisearch: - LederGames: '{{ Common.Company }}' + #Company: '{{ Common.Company }}' Search: Search all of {{ selectedProduct }}... Pages: Homepage: SubText: is your go-to cardpanion for - Actions: - Advanced: '{{ Common.Actions.AdvancedLong }}' - Syntax: '{{ Common.Actions.SyntaxLong }}' - Products: '{{ Common.Actions.ProductsLong }}' + #Actions: + # Advanced: '{{ Common.Actions.AdvancedLong }}' + # Syntax: '{{ Common.Actions.SyntaxLong }}' + # Products: '{{ Common.Actions.ProductsLong }}' AdvancedSearch: CardNameLabel: Card Name @@ -92,8 +95,10 @@ Pages: Reset: Reset SyntaxHelp: - Header: '{{ Common.AppName }} Search Reference' - Subheader: '{{ Common.AppName }} includes a large set of keywords and filters you can use to filter {{ Common.Company }} cards.' + #Header: '{{ Common.AppName }} Search Reference' + #Subheader: '{{ Common.AppName }} includes a large set of keywords and filters you can use to filter cards.' + Header: 'Search Reference' + Subheader: 'includes a large set of keywords and filters you can use to filter cards.' Operators: ID: diff --git a/package.json b/package.json index e56d1a9..f5e45a8 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "build:i18n": "ts-node scripts/build-i18n", "compress:card-images": "ts-node scripts/compress-card-images", "compress:card-symbols": "ts-node scripts/compress-card-symbols", + "validate": "concurrently \"npm run validate:*\"", "validate:card-data": "ts-node scripts/validate-cards", "finalize:version": "ts-node scripts/finalize-version", "copy:headers": "ts-node scripts/copy-headers" From db3032d8c3afe9392a2bc08f0e79d6ed0c661ce5 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 08:16:49 -0500 Subject: [PATCH 3/8] add locales to meta --- scripts/build-meta-data.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/build-meta-data.ts b/scripts/build-meta-data.ts index cd25256..2c4bdf0 100644 --- a/scripts/build-meta-data.ts +++ b/scripts/build-meta-data.ts @@ -9,7 +9,12 @@ const readAllMeta = async () => { const allMetaFiles = await readdir('./content/meta-data'); const allMetas = allMetaFiles.map((f) => yaml.load(fs.readFileSync(f))); - fs.writeJsonSync(`dist/meta.json`, allMetas); + const allLocaleFiles = await readdir('./content/i18n'); + const allLocales = allLocaleFiles.map((f) => path.basename(f, '.yml')); + + const json = { products: allMetas, locales: allLocales }; + + fs.writeJsonSync(`dist/meta.json`, json); console.log(`Got ${allMetas.length} meta data files!`); }; From fd47d29c665f68e2f661fdb7e9543e76539f6205 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 09:17:02 -0500 Subject: [PATCH 4/8] some i18n fixes --- content/i18n/en-US.yml | 54 +++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 32 deletions(-) diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index 32328bd..2f76c7f 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -13,6 +13,10 @@ Common: Products: Oath: Oath Root: Root + Arcs: Arcs + Fort: Fort + Vast: Vast + Ahoy: Ahoy Meta: Title: 'Leder Cards Spotlight' @@ -24,14 +28,10 @@ Components: BelowTheFold: Home: Home - #CategoryMain: '{{ Common.AppName }}' LightMode: Light Mode DarkMode: Dark Mode CategoryCards: Cards - #Advanced: '{{ Common.Actions.AdvancedLong }}' - #Syntax: '{{ Common.Actions.SyntaxLong }}' - #Products: '{{ Common.Actions.ProductsLong }}' CategorySupport: Support FAQ: FAQ @@ -43,24 +43,13 @@ Components: Copyright: The literal and graphical information presented on this site about Leder Games, including card images and symbols is copyright Leder Games. - #Header: - # Advanced: '{{ Common.Actions.AdvancedShort }}' - # Syntax: '{{ Common.Actions.SyntaxShort }}' - # Products: '{{ Common.Actions.ProductsShort }}' - Omnisearch: - #Company: '{{ Common.Company }}' Search: Search all of {{ selectedProduct }}... Pages: Homepage: SubText: is your go-to cardpanion for - #Actions: - # Advanced: '{{ Common.Actions.AdvancedLong }}' - # Syntax: '{{ Common.Actions.SyntaxLong }}' - # Products: '{{ Common.Actions.ProductsLong }}' - AdvancedSearch: CardNameLabel: Card Name CardNamePlaceholder: Search any card name @@ -95,8 +84,6 @@ Pages: Reset: Reset SyntaxHelp: - #Header: '{{ Common.AppName }} Search Reference' - #Subheader: '{{ Common.AppName }} includes a large set of keywords and filters you can use to filter cards.' Header: 'Search Reference' Subheader: 'includes a large set of keywords and filters you can use to filter cards.' @@ -106,16 +93,17 @@ Pages: Text: > You can find cards that match a certain id by using the `id:` operator. + This operator is special, you may also search without using the operator. Examples: - - example: OATH/1 + - example: `OATH/1` text: Find specifically the card matching the id OATH/1. - - example: id:=OATH/1 + - example: `id:=OATH/1` text: Find specifically the card matching the id OATH/1. - - example: -id:OATH + - example: `-id:OATH` text: Exclude all cards with the id OATH. Name: @@ -123,19 +111,20 @@ Pages: Text: > You can find cards that match a certain expansion by using the `name:` or `n:` operator. + This operator is a loose-text operator, which means that you can use partial names. You can also specify multiple expansions by separating them with a comma. If a name has spaces in its name, you must use quotation marks around the name. Examples: - - example: Alchemist + - example: `Alchemist` text: Cards with "alchemist" in their name. - - example: name:alchemist + - example: `name:alchemist` text: Cards with "alchemist" in their name. - - example: name:"=Alchemist" + - example: `name:"=Alchemist"` text: Cards that are called exactly "Alchemist". - - example: -name:"Alchemist" + - example: `-name:"Alchemist"` text: Cards without "alchemist" in their name. Product: @@ -144,10 +133,10 @@ Pages: You can find cards that are associated with a certain product/game by using the `product:` operator. Examples: - - example: product:oath + - example: `product:oath` text: Cards that belong to the Oath product. - - example: -product:root + - example: `-product:root` text: Cards that don't belong to the Root product. Subproduct: @@ -156,10 +145,10 @@ Pages: You can find cards that are associated with a certain subproduct/expansion by using the `subproduct:` operator. Examples: - - example: subproduct:clockwork-1 + - example: `subproduct:clockwork-1` text: Cards that belong to the Clockwork 1 subproduct. - - example: -subproduct:exiles-partisans + - example: `-subproduct:exiles-partisans` text: Cards that don't belong to the Exiles & Partisans subproduct. Tag: @@ -168,13 +157,13 @@ Pages: You can find cards that have a certain tag by using the `tag:` search operator. Almost every card will have a tag. You can find a list of valid tags by using the advanced search page. Examples: - - example: tag:"Power" + - example: `tag:"Power"` text: Cards that have the Power tag. - - example: tag:"Power,Arcane" + - example: `tag:"Power,Arcane"` text: Cards that have the Power and Arcane tags. - - example: tag:none + - example: `tag:none` text: Cards with no tags. SearchResults: @@ -199,8 +188,9 @@ Pages: Pagination: Previous: Previous - Next: Next 60 + Next: Next Card: More: More + FAQ: FAQ Rules: Rules From b06b60d2f6a5014060e1c9d52d4ea1869541922e Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 09:17:39 -0500 Subject: [PATCH 5/8] another quick fix --- content/i18n/en-US.yml | 56 +++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index 2f76c7f..31d5dc4 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -97,14 +97,14 @@ Pages: This operator is special, you may also search without using the operator. Examples: - - example: `OATH/1` - text: Find specifically the card matching the id OATH/1. + - Example: `OATH/1` + Text: Find specifically the card matching the id OATH/1. - - example: `id:=OATH/1` - text: Find specifically the card matching the id OATH/1. + - Example: `id:=OATH/1` + Text: Find specifically the card matching the id OATH/1. - - example: `-id:OATH` - text: Exclude all cards with the id OATH. + - Example: `-id:OATH` + Text: Exclude all cards with the id OATH. Name: Name: Name @@ -115,17 +115,17 @@ Pages: This operator is a loose-text operator, which means that you can use partial names. You can also specify multiple expansions by separating them with a comma. If a name has spaces in its name, you must use quotation marks around the name. Examples: - - example: `Alchemist` - text: Cards with "alchemist" in their name. + - Example: `Alchemist` + Text: Cards with "alchemist" in their name. - - example: `name:alchemist` - text: Cards with "alchemist" in their name. + - Example: `name:alchemist` + Text: Cards with "alchemist" in their name. - - example: `name:"=Alchemist"` - text: Cards that are called exactly "Alchemist". + - Example: `name:"=Alchemist"` + Text: Cards that are called exactly "Alchemist". - - example: `-name:"Alchemist"` - text: Cards without "alchemist" in their name. + - Example: `-name:"Alchemist"` + Text: Cards without "alchemist" in their name. Product: Name: Product @@ -133,11 +133,11 @@ Pages: You can find cards that are associated with a certain product/game by using the `product:` operator. Examples: - - example: `product:oath` - text: Cards that belong to the Oath product. + - Example: `product:oath` + Text: Cards that belong to the Oath product. - - example: `-product:root` - text: Cards that don't belong to the Root product. + - Example: `-product:root` + Text: Cards that don't belong to the Root product. Subproduct: Name: Subproduct @@ -145,11 +145,11 @@ Pages: You can find cards that are associated with a certain subproduct/expansion by using the `subproduct:` operator. Examples: - - example: `subproduct:clockwork-1` - text: Cards that belong to the Clockwork 1 subproduct. + - Example: `subproduct:clockwork-1` + Text: Cards that belong to the Clockwork 1 subproduct. - - example: `-subproduct:exiles-partisans` - text: Cards that don't belong to the Exiles & Partisans subproduct. + - Example: `-subproduct:exiles-partisans` + Text: Cards that don't belong to the Exiles & Partisans subproduct. Tag: Name: Tag @@ -157,14 +157,14 @@ Pages: You can find cards that have a certain tag by using the `tag:` search operator. Almost every card will have a tag. You can find a list of valid tags by using the advanced search page. Examples: - - example: `tag:"Power"` - text: Cards that have the Power tag. + - Example: `tag:"Power"` + Text: Cards that have the Power tag. - - example: `tag:"Power,Arcane"` - text: Cards that have the Power and Arcane tags. + - Example: `tag:"Power,Arcane"` + Text: Cards that have the Power and Arcane tags. - - example: `tag:none` - text: Cards with no tags. + - Example: `tag:none` + Text: Cards with no tags. SearchResults: NoResults: From e7c21b166af11eb94b478c9f6cd9eb58018f777d Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 09:19:39 -0500 Subject: [PATCH 6/8] fix yaml --- content/i18n/en-US.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index 31d5dc4..31188f3 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -97,13 +97,13 @@ Pages: This operator is special, you may also search without using the operator. Examples: - - Example: `OATH/1` + - Example: "`OATH/1`" Text: Find specifically the card matching the id OATH/1. - - Example: `id:=OATH/1` + - Example: "`id:=OATH/1`" Text: Find specifically the card matching the id OATH/1. - - Example: `-id:OATH` + - Example: "`-id:OATH`" Text: Exclude all cards with the id OATH. Name: @@ -115,16 +115,16 @@ Pages: This operator is a loose-text operator, which means that you can use partial names. You can also specify multiple expansions by separating them with a comma. If a name has spaces in its name, you must use quotation marks around the name. Examples: - - Example: `Alchemist` + - Example: "`Alchemist`" Text: Cards with "alchemist" in their name. - - Example: `name:alchemist` + - Example: "`name:alchemist`" Text: Cards with "alchemist" in their name. - - Example: `name:"=Alchemist"` + - Example: "`name:"=Alchemist"`" Text: Cards that are called exactly "Alchemist". - - Example: `-name:"Alchemist"` + - Example: "`-name:"Alchemist"`" Text: Cards without "alchemist" in their name. Product: @@ -133,10 +133,10 @@ Pages: You can find cards that are associated with a certain product/game by using the `product:` operator. Examples: - - Example: `product:oath` + - Example: "`product:oath`" Text: Cards that belong to the Oath product. - - Example: `-product:root` + - Example: "`-product:root`" Text: Cards that don't belong to the Root product. Subproduct: @@ -145,10 +145,10 @@ Pages: You can find cards that are associated with a certain subproduct/expansion by using the `subproduct:` operator. Examples: - - Example: `subproduct:clockwork-1` + - Example: "`subproduct:clockwork-1`" Text: Cards that belong to the Clockwork 1 subproduct. - - Example: `-subproduct:exiles-partisans` + - Example: "`-subproduct:exiles-partisans`" Text: Cards that don't belong to the Exiles & Partisans subproduct. Tag: @@ -157,13 +157,13 @@ Pages: You can find cards that have a certain tag by using the `tag:` search operator. Almost every card will have a tag. You can find a list of valid tags by using the advanced search page. Examples: - - Example: `tag:"Power"` + - Example: "`tag:"Power"`" Text: Cards that have the Power tag. - - Example: `tag:"Power,Arcane"` + - Example: "`tag:"Power,Arcane"`" Text: Cards that have the Power and Arcane tags. - - Example: `tag:none` + - Example: "`tag:none`" Text: Cards with no tags. SearchResults: From 680d6696d5fb771995de658d465e2ae5daa9a043 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 09:26:46 -0500 Subject: [PATCH 7/8] Really fix locales --- content/i18n/en-US.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index 31188f3..ff39b8e 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -97,13 +97,13 @@ Pages: This operator is special, you may also search without using the operator. Examples: - - Example: "`OATH/1`" + - Example: '`OATH/1`' Text: Find specifically the card matching the id OATH/1. - - Example: "`id:=OATH/1`" + - Example: '`id:=OATH/1`' Text: Find specifically the card matching the id OATH/1. - - Example: "`-id:OATH`" + - Example: '`-id:OATH`' Text: Exclude all cards with the id OATH. Name: @@ -115,16 +115,16 @@ Pages: This operator is a loose-text operator, which means that you can use partial names. You can also specify multiple expansions by separating them with a comma. If a name has spaces in its name, you must use quotation marks around the name. Examples: - - Example: "`Alchemist`" + - Example: '`Alchemist`' Text: Cards with "alchemist" in their name. - - Example: "`name:alchemist`" + - Example: '`name:alchemist`' Text: Cards with "alchemist" in their name. - - Example: "`name:"=Alchemist"`" + - Example: '`name:"=Alchemist"`' Text: Cards that are called exactly "Alchemist". - - Example: "`-name:"Alchemist"`" + - Example: '`-name:"Alchemist"`' Text: Cards without "alchemist" in their name. Product: @@ -133,10 +133,10 @@ Pages: You can find cards that are associated with a certain product/game by using the `product:` operator. Examples: - - Example: "`product:oath`" + - Example: '`product:oath`' Text: Cards that belong to the Oath product. - - Example: "`-product:root`" + - Example: '`-product:root`' Text: Cards that don't belong to the Root product. Subproduct: @@ -145,10 +145,10 @@ Pages: You can find cards that are associated with a certain subproduct/expansion by using the `subproduct:` operator. Examples: - - Example: "`subproduct:clockwork-1`" + - Example: '`subproduct:clockwork-1`' Text: Cards that belong to the Clockwork 1 subproduct. - - Example: "`-subproduct:exiles-partisans`" + - Example: '`-subproduct:exiles-partisans`' Text: Cards that don't belong to the Exiles & Partisans subproduct. Tag: @@ -157,13 +157,13 @@ Pages: You can find cards that have a certain tag by using the `tag:` search operator. Almost every card will have a tag. You can find a list of valid tags by using the advanced search page. Examples: - - Example: "`tag:"Power"`" + - Example: '`tag:"Power"`' Text: Cards that have the Power tag. - - Example: "`tag:"Power,Arcane"`" + - Example: '`tag:"Power,Arcane"`' Text: Cards that have the Power and Arcane tags. - - Example: "`tag:none`" + - Example: '`tag:none`' Text: Cards with no tags. SearchResults: From 036ef85b4048a19b5f2172c1d883c8b58c0a107b Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Fri, 3 May 2024 10:19:13 -0500 Subject: [PATCH 8/8] updadte readme, add arcs filters --- README.md | 8 ++++++++ content/i18n/en-US.yml | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 278dd16..970dfff 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,14 @@ Follow the guide for adding a new locale 1. Create a new folder in `content/card-images/{product}` for the locale (probably `en-US`) 1. Fill this folder with the images for the cards for the game. +### Adding New Filters + +When adding new filters in a meta data file that previously did not exist, you must also: + +1. Navigate to each locale file (in the `i18n` folder) +1. Go to `Pages.AdvancedSearch` +1. Add a similar entry as seen there for your new filter. + ## Publishing New Content This is done automatically when a PR is merged to `master`, and isn't intended to be done manually. diff --git a/content/i18n/en-US.yml b/content/i18n/en-US.yml index ff39b8e..7a8fff8 100644 --- a/content/i18n/en-US.yml +++ b/content/i18n/en-US.yml @@ -69,6 +69,15 @@ Pages: CardCapacityLabel: Card Capacity CardCapacityPlaceholder: Card Capacity + KeysLabel: Keys + KeysPlaceholder: Keys + + ActLabel: Act + ActPlaceholder: Act + + ComplexityLabel: Complexity + ComplexityPlaceholder: Complexity + NumberText: If left unspecified, will not be included in the search query Operators: