diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 21:32:28 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 21:32:28 +0200 |
commit | 0f3b1051228328718798fe0b40d02fdb72e3481f (patch) | |
tree | 2e3035d10e2ce7dcae2461615e6f428d7ab1a2cd | |
parent | d02494343cbf2d77fa16e2c3ee56426c73654135 (diff) |
Rename some components
-rw-r--r-- | i18n/catalog.go | 104 | ||||
-rw-r--r-- | i18n/locales/el/messages.gotext.json | 20 | ||||
-rw-r--r-- | i18n/locales/en-GB/messages.gotext.json | 215 | ||||
-rw-r--r-- | i18n/locales/en/messages.gotext.json | 28 | ||||
-rw-r--r-- | i18n/locales/nl-NL/messages.gotext.json | 163 | ||||
-rw-r--r-- | i18n/locales/nl/messages.gotext.json | 20 | ||||
-rw-r--r-- | main.go | 6 | ||||
-rw-r--r-- | middleware/i18n.go | 2 | ||||
-rw-r--r-- | templates/base.templ | 32 | ||||
-rw-r--r-- | templates/base_templ.go | 110 | ||||
-rw-r--r-- | templates/coins.templ (renamed from templates/coins_index.templ) | 2 | ||||
-rw-r--r-- | templates/coins_templ.go (renamed from templates/coins_index_templ.go) | 16 | ||||
-rw-r--r-- | templates/root.templ | 31 | ||||
-rw-r--r-- | templates/root_templ.go | 141 |
14 files changed, 641 insertions, 249 deletions
diff --git a/i18n/catalog.go b/i18n/catalog.go index 9bd3a55..6bcbb90 100644 --- a/i18n/catalog.go +++ b/i18n/catalog.go @@ -40,55 +40,55 @@ func init() { } var messageKeyToIndex = map[string]int{ - "About": 57, + "About": 59, "About Us": 25, "Andorra": 0, "Austria": 1, - "Banknotes": 54, + "Banknotes": 56, "Belgium": 2, "British- & American English": 34, - "Coin Collecting": 52, - "Coins": 53, + "Coin Collecting": 54, + "Coins": 55, "Contact Us": 28, "Croatia": 10, "Cyprus": 3, - "Designs": 40, + "Designs": 42, "Development": 31, - "Discord": 56, + "Discord": 58, "Estonia": 5, - "Euro Coin Designs": 36, - "Euro Coins": 38, - "Eurozone Languages": 48, - "Feel free to contact us!": 60, + "Euro Coin Designs": 38, + "Euro Coins": 40, + "Eurozone Languages": 50, + "Feel free to contact us!": 37, "Finland": 7, - "Found a mistake or want to contribute missing information?": 59, + "Found a mistake or want to contribute missing information?": 36, "France": 8, "Germany": 4, "Greece": 9, - "Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.": 37, - "Home": 50, + "Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.": 39, + "Home": 52, "Icelandic": 35, "Ireland": 11, "Italy": 12, - "Jargon": 55, - "Language": 58, + "Jargon": 57, + "Language": 60, "Latvia": 15, "Lithuania": 13, "Luxembourg": 14, "Malta": 17, - "Mintages": 42, + "Mintages": 44, "Monaco": 16, "Netherlands": 18, - "News": 51, - "On this section of the site you can find everything there is to know about the coins of the Eurozone. For the latest news on coin- and design releases, check out the %snews%s tab!": 39, + "News": 53, + "On this section of the site you can find everything there is to know about the coins of the Eurozone. For the latest news on coin- and design releases, check out the %snews%s tab!": 41, "Open Source": 26, - "Other Languages": 49, + "Other Languages": 51, "Page not found": 24, "Portugal": 19, "Research": 32, "San Marino": 22, - "Select Your Language": 46, - "Select your preferred language to use on the site.": 47, + "Select Your Language": 48, + "Select your preferred language to use on the site.": 49, "Slovakia": 21, "Slovenia": 20, "Spain": 6, @@ -97,11 +97,11 @@ var messageKeyToIndex = map[string]int{ "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found %shere%s. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.": 27, "Translations": 33, "United in": 62, - "Varieties": 44, + "Varieties": 46, "Vatican City": 23, - "View all the known Euro varieties!": 45, - "View the 600+ different Euro-coin designs!": 41, - "View the mintage figures of all the Euro coins!": 43, + "View all the known Euro varieties!": 47, + "View the 600+ different Euro-coin designs!": 43, + "View the mintage figures of all the Euro coins!": 45, "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.": 65, "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to %s or contact ‘@onetruemangoman’ on Discord.": 29, "cash": 64, @@ -149,13 +149,13 @@ var enIndex = []uint32{ // 67 elements 0x00000252, 0x0000025d, 0x0000044e, 0x0000045d, // Entry 20 - 3F 0x00000469, 0x00000472, 0x0000047f, 0x0000049b, - 0x000004a5, 0x000004b7, 0x00000599, 0x000005a4, - 0x0000065e, 0x00000666, 0x00000691, 0x0000069a, - 0x000006ca, 0x000006d4, 0x000006f7, 0x0000070c, - 0x0000073f, 0x00000752, 0x00000762, 0x00000767, - 0x0000076c, 0x0000077c, 0x00000782, 0x0000078c, - 0x00000793, 0x0000079b, 0x000007a1, 0x000007aa, - 0x000007e5, 0x000007fe, 0x00000817, 0x00000821, + 0x000004a5, 0x000004e0, 0x000004f9, 0x0000050b, + 0x000005ed, 0x000005f8, 0x000006b2, 0x000006ba, + 0x000006e5, 0x000006ee, 0x0000071e, 0x00000728, + 0x0000074b, 0x00000760, 0x00000793, 0x000007a6, + 0x000007b6, 0x000007bb, 0x000007c0, 0x000007d0, + 0x000007d6, 0x000007e0, 0x000007e7, 0x000007ef, + 0x000007f5, 0x000007fe, 0x00000817, 0x00000821, // Entry 40 - 5F 0x0000082b, 0x00000830, 0x00000948, } // Size: 292 bytes @@ -178,25 +178,25 @@ const enData string = "" + // Size: 2376 bytes "u are always free to contribute via a git patch if you are more technica" + "lly included, but if not you can always send an email to %[1]s or contac" + "t ‘@onetruemangoman’ on Discord.\x02Special Thanks\x02Development\x02Res" + - "earch\x02Translations\x02British- & American English\x02Icelandic\x02Eur" + - "o Coin Designs\x02Here you’ll be able to view all the coin designs for e" + - "ach country in the Eurozone. This section of the site doesn’t include mi" + - "nor varieties such as different mintmarks or errors; those are on the %[" + - "1]svarieties%[2]s page.\x02Euro Coins\x02On this section of the site you" + - " can find everything there is to know about the coins of the Eurozone. F" + - "or the latest news on coin- and design releases, check out the %[1]snews" + - "%[2]s tab!\x02Designs\x02View the 600+ different Euro-coin designs!\x02M" + - "intages\x02View the mintage figures of all the Euro coins!\x02Varieties" + - "\x02View all the known Euro varieties!\x02Select Your Language\x02Select" + - " your preferred language to use on the site.\x02Eurozone Languages\x02Ot" + - "her Languages\x02Home\x02News\x02Coin Collecting\x02Coins\x02Banknotes" + - "\x02Jargon\x02Discord\x02About\x02Language\x02Found a mistake or want to" + - " contribute missing information?\x02Feel free to contact us!\x02The Euro" + - " Cash Compendium\x02United in\x02diversity\x02cash\x02Welcome to the Eur" + - "o Cash Compendium. This sites aims to be a resource for you to discover " + - "everything there is to know about the coins and banknotes of the Euro, a" + - " currency that spans 26 countries and 350 million people. We also have d" + - "edicated sections of the site for collectors." + "earch\x02Translations\x02British- & American English\x02Icelandic\x02Fou" + + "nd a mistake or want to contribute missing information?\x02Feel free to " + + "contact us!\x02Euro Coin Designs\x02Here you’ll be able to view all the " + + "coin designs for each country in the Eurozone. This section of the site " + + "doesn’t include minor varieties such as different mintmarks or errors; t" + + "hose are on the %[1]svarieties%[2]s page.\x02Euro Coins\x02On this secti" + + "on of the site you can find everything there is to know about the coins " + + "of the Eurozone. For the latest news on coin- and design releases, check" + + " out the %[1]snews%[2]s tab!\x02Designs\x02View the 600+ different Euro-" + + "coin designs!\x02Mintages\x02View the mintage figures of all the Euro co" + + "ins!\x02Varieties\x02View all the known Euro varieties!\x02Select Your L" + + "anguage\x02Select your preferred language to use on the site.\x02Eurozon" + + "e Languages\x02Other Languages\x02Home\x02News\x02Coin Collecting\x02Coi" + + "ns\x02Banknotes\x02Jargon\x02Discord\x02About\x02Language\x02The Euro Ca" + + "sh Compendium\x02United in\x02diversity\x02cash\x02Welcome to the Euro C" + + "ash Compendium. This sites aims to be a resource for you to discover eve" + + "rything there is to know about the coins and banknotes of the Euro, a cu" + + "rrency that spans 26 countries and 350 million people. We also have dedi" + + "cated sections of the site for collectors." var nlIndex = []uint32{ // 67 elements // Entry 0 - 1F @@ -223,4 +223,4 @@ var nlIndex = []uint32{ // 67 elements const nlData string = "" -// Total table size 3635 bytes (3KiB); checksum: 3E1AA495 +// Total table size 3635 bytes (3KiB); checksum: 7ECD21C9 diff --git a/i18n/locales/el/messages.gotext.json b/i18n/locales/el/messages.gotext.json index 24ada0d..bb57493 100644 --- a/i18n/locales/el/messages.gotext.json +++ b/i18n/locales/el/messages.gotext.json @@ -90,6 +90,16 @@ "translation": "" }, { + "id": "Found a mistake or want to contribute missing information?", + "message": "Found a mistake or want to contribute missing information?", + "translation": "" + }, + { + "id": "Feel free to contact us!", + "message": "Feel free to contact us!", + "translation": "" + }, + { "id": "Andorra", "message": "Andorra", "translation": "Ανδόρα" @@ -361,16 +371,6 @@ "translation": "" }, { - "id": "Found a mistake or want to contribute missing information?", - "message": "Found a mistake or want to contribute missing information?", - "translation": "" - }, - { - "id": "Feel free to contact us!", - "message": "Feel free to contact us!", - "translation": "" - }, - { "id": "The Euro Cash Compendium", "message": "The Euro Cash Compendium", "translation": "" diff --git a/i18n/locales/en-GB/messages.gotext.json b/i18n/locales/en-GB/messages.gotext.json new file mode 100644 index 0000000..4b0b247 --- /dev/null +++ b/i18n/locales/en-GB/messages.gotext.json @@ -0,0 +1,215 @@ +{ + "language": "en-GB", + "messages": [ + { + "id": "Page not found", + "message": "Page not found", + "translation": "Page not found", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "About Us", + "message": "About Us", + "translation": "About Us", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Open Source", + "message": "Open Source", + "translation": "Open Source", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found {LinkStart}here{LinkEnd}. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.", + "message": "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found {LinkStart}here{LinkEnd}. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.", + "translation": "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found {LinkStart}here{LinkEnd}. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.", + "translatorComment": "Copied from source.", + "placeholders": [ + { + "id": "LinkStart", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "linkStart" + }, + { + "id": "LinkEnd", + "string": "%[2]s", + "type": "string", + "underlyingType": "string", + "argNum": 2, + "expr": "linkEnd" + } + ], + "fuzzy": true + }, + { + "id": "Contact Us", + "message": "Contact Us", + "translation": "Contact Us", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to {ContactEmail} or contact ‘@onetruemangoman’ on Discord.", + "message": "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to {ContactEmail} or contact ‘@onetruemangoman’ on Discord.", + "translation": "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to {ContactEmail} or contact ‘@onetruemangoman’ on Discord.", + "translatorComment": "Copied from source.", + "placeholders": [ + { + "id": "ContactEmail", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "contactEmail" + } + ], + "fuzzy": true + }, + { + "id": "Home", + "message": "Home", + "translation": "Home", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "News", + "message": "News", + "translation": "News", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Coin Collecting", + "message": "Coin Collecting", + "translation": "Coin Collecting", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Coins", + "message": "Coins", + "translation": "Coins", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Banknotes", + "message": "Banknotes", + "translation": "Banknotes", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Jargon", + "message": "Jargon", + "translation": "Jargon", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Discord", + "message": "Discord", + "translation": "Discord", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "About", + "message": "About", + "translation": "About", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Language", + "message": "Language", + "translation": "Language", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Found a mistake or want to contribute missing information?", + "message": "Found a mistake or want to contribute missing information?", + "translation": "Found a mistake or want to contribute missing information?", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Feel free to contact us!", + "message": "Feel free to contact us!", + "translation": "Feel free to contact us!", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "The Euro Cash Compendium", + "message": "The Euro Cash Compendium", + "translation": "The Euro Cash Compendium", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "United in", + "message": "United in", + "translation": "United in", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "diversity", + "message": "diversity", + "translation": "diversity", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "cash", + "message": "cash", + "translation": "cash", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.", + "message": "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.", + "translation": "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Select Your Language", + "message": "Select Your Language", + "translation": "Select Your Language", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Select your preferred language to use on the site.", + "message": "Select your preferred language to use on the site.", + "translation": "Select your preferred language to use on the site.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Eurozone Languages", + "message": "Eurozone Languages", + "translation": "Eurozone Languages", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Other Languages", + "message": "Other Languages", + "translation": "Other Languages", + "translatorComment": "Copied from source.", + "fuzzy": true + } + ] +}
\ No newline at end of file diff --git a/i18n/locales/en/messages.gotext.json b/i18n/locales/en/messages.gotext.json index 6505619..3bdd687 100644 --- a/i18n/locales/en/messages.gotext.json +++ b/i18n/locales/en/messages.gotext.json @@ -114,6 +114,20 @@ "fuzzy": true }, { + "id": "Found a mistake or want to contribute missing information?", + "message": "Found a mistake or want to contribute missing information?", + "translation": "Found a mistake or want to contribute missing information?", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Feel free to contact us!", + "message": "Feel free to contact us!", + "translation": "Feel free to contact us!", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { "id": "Andorra", "message": "Andorra", "translation": "Andorra", @@ -479,20 +493,6 @@ "fuzzy": true }, { - "id": "Found a mistake or want to contribute missing information?", - "message": "Found a mistake or want to contribute missing information?", - "translation": "Found a mistake or want to contribute missing information?", - "translatorComment": "Copied from source.", - "fuzzy": true - }, - { - "id": "Feel free to contact us!", - "message": "Feel free to contact us!", - "translation": "Feel free to contact us!", - "translatorComment": "Copied from source.", - "fuzzy": true - }, - { "id": "The Euro Cash Compendium", "message": "The Euro Cash Compendium", "translation": "The Euro Cash Compendium", diff --git a/i18n/locales/nl-NL/messages.gotext.json b/i18n/locales/nl-NL/messages.gotext.json new file mode 100644 index 0000000..fb18cfb --- /dev/null +++ b/i18n/locales/nl-NL/messages.gotext.json @@ -0,0 +1,163 @@ +{ + "language": "nl-NL", + "messages": [ + { + "id": "Page not found", + "message": "Page not found", + "translation": "" + }, + { + "id": "About Us", + "message": "About Us", + "translation": "" + }, + { + "id": "Open Source", + "message": "Open Source", + "translation": "" + }, + { + "id": "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found {LinkStart}here{LinkEnd}. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.", + "message": "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found {LinkStart}here{LinkEnd}. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.", + "translation": "", + "placeholders": [ + { + "id": "LinkStart", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "linkStart" + }, + { + "id": "LinkEnd", + "string": "%[2]s", + "type": "string", + "underlyingType": "string", + "argNum": 2, + "expr": "linkEnd" + } + ] + }, + { + "id": "Contact Us", + "message": "Contact Us", + "translation": "" + }, + { + "id": "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to {ContactEmail} or contact ‘@onetruemangoman’ on Discord.", + "message": "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to {ContactEmail} or contact ‘@onetruemangoman’ on Discord.", + "translation": "", + "placeholders": [ + { + "id": "ContactEmail", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "contactEmail" + } + ] + }, + { + "id": "Home", + "message": "Home", + "translation": "" + }, + { + "id": "News", + "message": "News", + "translation": "" + }, + { + "id": "Coin Collecting", + "message": "Coin Collecting", + "translation": "" + }, + { + "id": "Coins", + "message": "Coins", + "translation": "" + }, + { + "id": "Banknotes", + "message": "Banknotes", + "translation": "" + }, + { + "id": "Jargon", + "message": "Jargon", + "translation": "" + }, + { + "id": "Discord", + "message": "Discord", + "translation": "" + }, + { + "id": "About", + "message": "About", + "translation": "" + }, + { + "id": "Language", + "message": "Language", + "translation": "" + }, + { + "id": "Found a mistake or want to contribute missing information?", + "message": "Found a mistake or want to contribute missing information?", + "translation": "" + }, + { + "id": "Feel free to contact us!", + "message": "Feel free to contact us!", + "translation": "" + }, + { + "id": "The Euro Cash Compendium", + "message": "The Euro Cash Compendium", + "translation": "" + }, + { + "id": "United in", + "message": "United in", + "translation": "" + }, + { + "id": "diversity", + "message": "diversity", + "translation": "" + }, + { + "id": "cash", + "message": "cash", + "translation": "" + }, + { + "id": "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.", + "message": "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.", + "translation": "" + }, + { + "id": "Select Your Language", + "message": "Select Your Language", + "translation": "" + }, + { + "id": "Select your preferred language to use on the site.", + "message": "Select your preferred language to use on the site.", + "translation": "" + }, + { + "id": "Eurozone Languages", + "message": "Eurozone Languages", + "translation": "" + }, + { + "id": "Other Languages", + "message": "Other Languages", + "translation": "" + } + ] +}
\ No newline at end of file diff --git a/i18n/locales/nl/messages.gotext.json b/i18n/locales/nl/messages.gotext.json index ed11410..f0ccf77 100644 --- a/i18n/locales/nl/messages.gotext.json +++ b/i18n/locales/nl/messages.gotext.json @@ -90,6 +90,16 @@ "translation": "" }, { + "id": "Found a mistake or want to contribute missing information?", + "message": "Found a mistake or want to contribute missing information?", + "translation": "" + }, + { + "id": "Feel free to contact us!", + "message": "Feel free to contact us!", + "translation": "" + }, + { "id": "Andorra", "message": "Andorra", "translation": "" @@ -361,16 +371,6 @@ "translation": "" }, { - "id": "Found a mistake or want to contribute missing information?", - "message": "Found a mistake or want to contribute missing information?", - "translation": "" - }, - { - "id": "Feel free to contact us!", - "message": "Feel free to contact us!", - "translation": "" - }, - { "id": "The Euro Cash Compendium", "message": "The Euro Cash Compendium", "translation": "" @@ -18,9 +18,9 @@ import ( ) var components = map[string]templ.Component{ - "/": templates.Index(), + "/": templates.Root(), "/about": templates.About(), - "/coins": templates.CoinsIndex(), + "/coins": templates.Coins(), "/coins/designs": templates.CoinsDesigns(), "/language": templates.Language(), } @@ -71,7 +71,7 @@ func finalHandler(w http.ResponseWriter, r *http.Request) { Value: cmp.Or(r.Referer(), "/"), }) } - templates.Root(nil, c).Render(r.Context(), w) + templates.Base(nil, c).Render(r.Context(), w) } } diff --git a/middleware/i18n.go b/middleware/i18n.go index db90270..921534e 100644 --- a/middleware/i18n.go +++ b/middleware/i18n.go @@ -34,7 +34,7 @@ func I18n(next http.Handler) http.Handler { Name: "redirect", Value: r.URL.Path, }) - templates.Root(nil, templates.Language()).Render(ctx, w) + templates.Base(nil, templates.Language()).Render(ctx, w) } else { next.ServeHTTP(w, r.WithContext(ctx)) } diff --git a/templates/base.templ b/templates/base.templ new file mode 100644 index 0000000..88a9e77 --- /dev/null +++ b/templates/base.templ @@ -0,0 +1,32 @@ +package templates + +import "git.thomasvoss.com/euro-cash.eu/i18n" + +templ Base(head, body templ.Component) { + {{ p := ctx.Value("printer").(i18n.Printer) }} + <!DOCTYPE html> + <html lang={ p.Locale.Bcp } data-theme={ ctx.Value("theme").(string) }> + <head> + <meta charset="UTF-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> + <link rel="stylesheet" type="text/css" href="/style.css"/> + <title>Euro Cash</title> + if head != nil { + @head + } + </head> + <body> + if body != nil { + @body + } + <footer> + <p> + <small> + { p.T("Found a mistake or want to contribute missing information?") } + <a href="/">{ p.T("Feel free to contact us!") }</a> + </small> + </p> + </footer> + </body> + </html> +} diff --git a/templates/base_templ.go b/templates/base_templ.go new file mode 100644 index 0000000..2bc2034 --- /dev/null +++ b/templates/base_templ.go @@ -0,0 +1,110 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.747 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +import "git.thomasvoss.com/euro-cash.eu/i18n" + +func Base(head, body templ.Component) templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + p := ctx.Value("printer").(i18n.Printer) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><html lang=\"") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var2 string + templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(p.Locale.Bcp) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 8, Col: 26} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" data-theme=\"") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var3 string + templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(ctx.Value("theme").(string)) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 8, Col: 69} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\"><title>Euro Cash</title>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if head != nil { + templ_7745c5c3_Err = head.Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</head><body>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if body != nil { + templ_7745c5c3_Err = body.Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<footer><p><small>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Found a mistake or want to contribute missing information?")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 25, Col: 73} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <a href=\"/\">") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var5 string + templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Feel free to contact us!")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 26, Col: 51} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</a></small></p></footer></body></html>") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} diff --git a/templates/coins_index.templ b/templates/coins.templ index 346cc04..050d7e8 100644 --- a/templates/coins_index.templ +++ b/templates/coins.templ @@ -4,7 +4,7 @@ import "git.thomasvoss.com/euro-cash.eu/i18n" const newsLinkStart = `<a href="/news">` -templ CoinsIndex() { +templ Coins() { {{ p := ctx.Value("printer").(i18n.Printer) }} <header> @navbar() diff --git a/templates/coins_index_templ.go b/templates/coins_templ.go index ad40c1e..574d0ac 100644 --- a/templates/coins_index_templ.go +++ b/templates/coins_templ.go @@ -12,7 +12,7 @@ import "git.thomasvoss.com/euro-cash.eu/i18n" const newsLinkStart = `<a href="/news">` -func CoinsIndex() templ.Component { +func Coins() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) @@ -46,7 +46,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Euro Coins")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 11, Col: 25} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 11, Col: 25} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -67,7 +67,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Designs")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 23, Col: 27} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 23, Col: 27} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -80,7 +80,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("View the 600+ different Euro-coin designs!")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 26, Col: 58} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 26, Col: 58} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -93,7 +93,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Mintages")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 33, Col: 28} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 33, Col: 28} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -106,7 +106,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("View the mintage figures of all the Euro coins!")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 36, Col: 63} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 36, Col: 63} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -119,7 +119,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Varieties")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 43, Col: 29} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 43, Col: 29} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -132,7 +132,7 @@ func CoinsIndex() templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("View all the known Euro varieties!")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins_index.templ`, Line: 46, Col: 50} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `coins.templ`, Line: 46, Col: 50} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { diff --git a/templates/root.templ b/templates/root.templ index f4fd0e2..bfe9210 100644 --- a/templates/root.templ +++ b/templates/root.templ @@ -2,36 +2,7 @@ package templates import "git.thomasvoss.com/euro-cash.eu/i18n" -templ Root(head, body templ.Component) { - {{ p := ctx.Value("printer").(i18n.Printer) }} - <!DOCTYPE html> - <html lang={ p.Locale.Bcp } data-theme={ ctx.Value("theme").(string) }> - <head> - <meta charset="UTF-8"/> - <meta name="viewport" content="width=device-width, initial-scale=1.0"/> - <link rel="stylesheet" type="text/css" href="/style.css"/> - <title>Euro Cash</title> - if head != nil { - @head - } - </head> - <body> - if body != nil { - @body - } - <footer> - <p> - <small> - { p.T("Found a mistake or want to contribute missing information?") } - <a href="/">{ p.T("Feel free to contact us!") }</a> - </small> - </p> - </footer> - </body> - </html> -} - -templ Index() { +templ Root() { {{ p := ctx.Value("printer").(i18n.Printer) }} <header> @navbar() diff --git a/templates/root_templ.go b/templates/root_templ.go index 895e404..9c10b18 100644 --- a/templates/root_templ.go +++ b/templates/root_templ.go @@ -10,7 +10,7 @@ import templruntime "github.com/a-h/templ/runtime" import "git.thomasvoss.com/euro-cash.eu/i18n" -func Root(head, body templ.Component) templ.Component { +func Root() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) @@ -29,105 +29,6 @@ func Root(head, body templ.Component) templ.Component { } ctx = templ.ClearChildren(ctx) p := ctx.Value("printer").(i18n.Printer) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><html lang=\"") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var2 string - templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(p.Locale.Bcp) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 8, Col: 26} - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" data-theme=\"") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var3 string - templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(ctx.Value("theme").(string)) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 8, Col: 69} - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\"><title>Euro Cash</title>") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - if head != nil { - templ_7745c5c3_Err = head.Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</head><body>") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - if body != nil { - templ_7745c5c3_Err = body.Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<footer><p><small>") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var4 string - templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Found a mistake or want to contribute missing information?")) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 25, Col: 73} - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <a href=\"/\">") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var5 string - templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Feel free to contact us!")) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 26, Col: 51} - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</a></small></p></footer></body></html>") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - return templ_7745c5c3_Err - }) -} - -func Index() templ.Component { - return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { - templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context - templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) - if !templ_7745c5c3_IsBuffer { - defer func() { - templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) - if templ_7745c5c3_Err == nil { - templ_7745c5c3_Err = templ_7745c5c3_BufErr - } - }() - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var6 := templ.GetChildren(ctx) - if templ_7745c5c3_Var6 == nil { - templ_7745c5c3_Var6 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - p := ctx.Value("printer").(i18n.Printer) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<header>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err @@ -140,12 +41,12 @@ func Index() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var7 string - templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("The Euro Cash Compendium")) + var templ_7745c5c3_Var2 string + templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("The Euro Cash Compendium")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 39, Col: 40} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 10, Col: 40} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -153,12 +54,12 @@ func Index() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var8 string - templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("United in")) + var templ_7745c5c3_Var3 string + templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("United in")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 41, Col: 22} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 12, Col: 22} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -166,12 +67,12 @@ func Index() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var9 string - templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("diversity")) + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("diversity")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 42, Col: 27} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 13, Col: 27} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -179,12 +80,12 @@ func Index() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var10 string - templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("cash")) + var templ_7745c5c3_Var5 string + templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("cash")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 43, Col: 22} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 14, Col: 22} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -192,12 +93,12 @@ func Index() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var11 string - templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.")) + var templ_7745c5c3_Var6 string + templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(p.T("Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 49, Col: 291} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `root.templ`, Line: 20, Col: 291} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } |