mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-01 16:29:29 +00:00
feat: add usage IP geolocation lookup
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import en from '../locales/en'
|
||||
import zh from '../locales/zh'
|
||||
|
||||
describe('usage ipGeo locale keys', () => {
|
||||
it('contains zh labels for IP geolocation UI', () => {
|
||||
expect(zh.usage.ipGeo.fetch).toBe('获取地区')
|
||||
expect(zh.usage.ipGeo.fetching).toBe('获取中...')
|
||||
expect(zh.usage.ipGeo.failed).toBe('获取失败')
|
||||
expect(zh.usage.ipGeo.private).toBe('内网地址')
|
||||
expect(zh.usage.ipGeo.batchFetch).toBe('批量获取地区')
|
||||
expect(zh.usage.ipGeo.pending).toBe('{count} 个 IP 待获取地区')
|
||||
})
|
||||
|
||||
it('contains en labels for IP geolocation UI', () => {
|
||||
expect(en.usage.ipGeo.fetch).toBe('Fetch region')
|
||||
expect(en.usage.ipGeo.fetching).toBe('Fetching...')
|
||||
expect(en.usage.ipGeo.failed).toBe('Failed')
|
||||
expect(en.usage.ipGeo.private).toBe('Private address')
|
||||
expect(en.usage.ipGeo.batchFetch).toBe('Batch fetch regions')
|
||||
expect(en.usage.ipGeo.pending).toBe('{count} IPs pending')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user