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:30:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c728d792b9b2d4d2e5f1135437d77fde3bb56fe
6c728d79
1 parent
5ee3f16c
feat: added language guessing module
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 @
6c728d7
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 @
6c728d7
{
"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