mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 15:10:26 +00:00
Code🤣
This commit is contained in:
21
lib/cjk.js
Normal file
21
lib/cjk.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const BLOG = require('../blog.config')
|
||||
|
||||
module.exports = function () {
|
||||
switch (BLOG.lang.toLowerCase()) {
|
||||
case 'zh-cn':
|
||||
case 'zh-sg':
|
||||
return 'SC'
|
||||
case 'zh':
|
||||
case 'zh-hk':
|
||||
case 'zh-tw':
|
||||
return 'TC'
|
||||
case 'ja':
|
||||
case 'ja-jp':
|
||||
return 'JP'
|
||||
case 'ko':
|
||||
case 'ko-kr':
|
||||
return 'KR'
|
||||
default:
|
||||
return null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user