Toggle navigation
Toggle navigation
This project
Loading...
Sign in
곽윤철
/
youtube-comment-seperator
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuncheol Kwak
2022-05-18 14:33:20 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
d4d72d6577a0d77cb68c44e4e2084f7721a412bf
d4d72d65
2 parents
5ee3f16c
6c728d79
Merge branch 'feature/language_guess' into develop
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
language-guess.js
package.json
language-guess.js
0 → 100644
View file @
d4d72d6
import
{
franc
}
from
'franc'
;
import
langs
from
'langs'
;
function
getLang
(
se
)
{
let
langCode
=
""
;
if
(
se
.
length
<
10
)
{
langCode
=
franc
(
se
,
{
minLength
:
`
${
se
.
length
}
`
});
}
else
{
langCode
=
franc
(
se
);
}
return
langs
.
where
(
'3'
,
langCode
).
local
;
}
export
{
getLang
};
\ No newline at end of file
package.json
View file @
d4d72d6
{
"dependencies"
:
{
"googleapis"
:
"^100.0.0"
,
"youtube-v3-api"
:
"^1.1.1"
}
"youtube-v3-api"
:
"^1.1.1"
,
"franc"
:
"^6.0.0"
,
"langs"
:
"^2.0.0"
},
"type"
:
"module"
}
...
...
Please
register
or
login
to post a comment