Skip to content

Commit 0b372a1

Browse files
Create langcode.js
1 parent dc168cc commit 0b372a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stuff/langcode.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const langcode = (id) => {
2+
return id == 1 ? 'ru' : id == 2 ? 'fr' : id == 3 ? 'ua' : 'en';
3+
}

0 commit comments

Comments
 (0)