File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ in your HTML:
95
95
* you can install via other CDN URL such as skypack,
96
96
* or, you can also use import maps
97
97
*/
98
- import { isLocale } from ' https://esm.sh/@intlify/utils '
98
+ import { isLocale } from ' https://deno.land/x/intlify_utils/mod.ts '
99
99
100
100
// something todo
101
101
// ...
Original file line number Diff line number Diff line change 1
1
{
2
2
"imports" : {
3
- "@intlify/utils" :
" https://esm.sh/@intlify/[email protected] "
3
+ "@intlify/utils" : " https://deno.land/x/intlify_utils/mod.ts "
4
4
},
5
5
"tasks" : {
6
6
"dev" : " deno run --watch main.ts" ,
Original file line number Diff line number Diff line change 1
1
// @ts -ignore: this is example
2
- import { getHeaderLanguages } from '@intlify/utils'
2
+ import { getHeaderLanguages } from "@intlify/utils" ; // module is mapped by `deno.jsonc`
3
+ // import { getHeaderLanguages } from 'https://deno.land/x/intlify_utils/mod.ts'
3
4
4
- const port = 8125
5
+ const port = 8125 ;
5
6
Deno . serve ( {
6
7
port,
7
8
} , ( req : Request ) => {
8
- const languages = getHeaderLanguages ( req )
9
- return new Response ( `detect accpect-language: ${ languages } ` )
10
- } )
11
- console . log ( `server listening on ${ port } ` )
9
+ const languages = getHeaderLanguages ( req ) ;
10
+ return new Response ( `detect accpect-language: ${ languages } ` ) ;
11
+ } ) ;
12
+ console . log ( `server listening on ${ port } ` ) ;
You can’t perform that action at this time.
0 commit comments