Modrinth/types/vintl.d.ts
Sasha Sorokin 467b0fa988
Add the language setting page (#1210)
* Add initial language picker prototype

* Heap o' improvements and Pirate tongue

* Move .visually-hidden to shared utils and add copyright notice

* Add a little space before categories names

* Simplify search to input focus logic

* Remove larger font size and padding from the search field

* Some refactors

* Braw's descent into madness

Thanks web development!

In seriousness though, tried to make the list more accessible. Making it
fully accessible feels like unbearable task, so at least that.

* Litol refactoring

* Extract new strings and remove old ones

* Update @vintl/nuxt to 1.3.0

This fixes the bug where default locale won't be saved.

* A buncha refactorings and cleanup

* Scuttle the Pirate lingo

'Twas employed 'ere for testin' purposes, but fear not, for it shall be
returnin' in the days to come. Should ye require it fer testin', simply
roll back this here commit.

* Clean languages source file

* Change "US" to "United States"

I think it would make distinguishing two languages simpler as now
there's more than one letter of difference (US/UK vs United States/
United Kingdom).
2023-08-21 13:26:39 -04:00

21 lines
430 B
TypeScript

import '@vintl/vintl'
import { CompactNumber } from '@vintl/compact-number/dist/index.mjs'
declare global {
namespace VueIntlController {
interface MessageValueTypes {
compactNumber: CompactNumber
}
interface LocaleResources {
'languages.json'?: Partial<Record<string, string>>
}
interface LocaleMeta {
displayName?: string
category?: string
searchTerms?: string
}
}
}