Skip to Content
🎲 RandBox へようこそ - 強力な JavaScript ランダムデータ生成ライブラリ! 詳細を見る

locale

// 用法 randBox.locale() randBox.locale({region: true})

生成一个随机 ISO-639-1 语言代码

randBox.locale(); => 'ca'

生成一个随机 IETF 区域代码

randBox.locale({region: true}); => 'es-EA'

注意,语言代码来自 ISO-639-1 规范 , 区域代码来自 IETF 标准 

最終更新日: