Skip to content

Commit b93c5e7

Browse files
committed
Use ScratchTools API instead
1 parent 9872d1f commit b93c5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/localized-explore/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default async function ({ feature, console }) {
1212
async function getLanguage(country) {
1313
try {
1414
const res = await fetch(
15-
`https://restcountries.com/v3.1/name/${encodeURIComponent(country)}?fullText=true`
15+
`https://data.scratchtools.app/language/${encodeURIComponent(country)}?fullText=true`
1616
);
1717
if (!res.ok) return null;
1818
const data = await res.json();

0 commit comments

Comments
 (0)