File tree Expand file tree Collapse file tree 3 files changed +1
-46
lines changed
pages/contributing/translation-program
scripts/crowdin/leaderboard Expand file tree Collapse file tree 3 files changed +1
-46
lines changed Original file line number Diff line number Diff line change @@ -345,49 +345,6 @@ export type CostLeaderboardData = Pick<
345
345
langs : string [ ]
346
346
}
347
347
348
- // TODO: Deprecate AllTimeData
349
- export type AllTimeData = {
350
- name : string
351
- url : string
352
- unit : string
353
- dateRange : {
354
- from : string
355
- to : string
356
- }
357
- currency : string
358
- mode : string
359
- totalCosts : number
360
- totalTMSavings : number
361
- totalPreTranslated : number
362
- data : Array < {
363
- user : {
364
- id : number
365
- username : string
366
- fullName : string
367
- userRole : string
368
- avatarUrl : string
369
- preTranslated : number
370
- totalCosts : number
371
- }
372
- languages : Array < {
373
- language : {
374
- id : string
375
- name : string
376
- userRole : string
377
- tmSavings : number
378
- preTranslate : number
379
- totalCosts : number
380
- }
381
- translated : TranslatedStats
382
- targetTranslated : TranslatedStats
383
- translatedByMt : TranslatedStats
384
- approved : TranslatedStats
385
- translationCosts : TranslatedStats
386
- approvalCosts : TranslatedStats
387
- } >
388
- } >
389
- }
390
-
391
348
// GitHub contributors
392
349
export type Commit = {
393
350
commit : {
Original file line number Diff line number Diff line change @@ -13,10 +13,8 @@ import {
13
13
} from "@chakra-ui/react"
14
14
15
15
import {
16
- AllTimeData ,
17
16
BasePageProps ,
18
17
CostLeaderboardData ,
19
- Unpacked ,
20
18
} from "@/lib/types"
21
19
22
20
import Breadcrumbs from "@/components/Breadcrumbs"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export const getLastQuarter = (): { from: string; to: string } => {
8
8
const now = new Date ( )
9
9
10
10
// Months per quarter
11
- const MPQ = 12 / 4
11
+ const MPQ = 3
12
12
13
13
// Get current quarter
14
14
const currentQ = Math . floor ( now . getUTCMonth ( ) / MPQ )
You can’t perform that action at this time.
0 commit comments