initial commit. Cloned timetracker repository
This commit is contained in:
23
bo/src/utils/fake.ts
Normal file
23
bo/src/utils/fake.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export const getLangs = async () => {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
'some.key': 'this is translated text',
|
||||
'key.two': 'this is second key',
|
||||
'routing.login': 'Routing Translation',
|
||||
})
|
||||
}, 200)
|
||||
})
|
||||
}
|
||||
|
||||
export const getL = async () => {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve([
|
||||
{ code: 'en', name: 'English', flag: '🇬🇧' },
|
||||
{ code: 'pl', name: 'Polski', flag: '🇵🇱' },
|
||||
{ code: 'cs', name: 'Čeština', flag: '🇨🇿' },
|
||||
])
|
||||
}, Math.random() * 1000)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user