mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-02 12:57:49 +01:00
Rename Utils Class
This commit is contained in:
5
app/Utils/TranslationsUtils.ts
Normal file
5
app/Utils/TranslationsUtils.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import Translation from "App/Models/Translation";
|
||||
|
||||
export async function getTranslation(code: string): Promise<Translation> {
|
||||
return await Translation.firstOrNew({code}, {code})
|
||||
}
|
||||
Reference in New Issue
Block a user