Created
May 10, 2024 04:28
-
-
Save trycf/4572a5d5ce1eb9362eaf055fcb4b30d3 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
alternateUrl = "de https://www.goethe.de/ins/kr/de/404linkliste.html, de https://www.goethe.de/ins/id/de/404linkliste.html, de https://www.goethe.de/ins/de/de/404linkliste.html, ja https://www.goethe.de/ins/de/ja/404linkliste.html, pt https://www.goethe.de/ins/de/pt/404linkliste.html"; | |
countryIsoCode = "af"; | |
function getAlternateHreflangCode (countryIsoCode, langIsoCode) { | |
return langIsoCode & "-" & Ucase(countryIsoCode); | |
} | |
ArrayEach(myCities,function(city){ | |
WriteOutput(city & " "); | |
} | |
); | |
writeDump(getAlternateHreflangCode(countryIsoCode, alternateUrl)) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment