Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
feat: respect language setting when creating a task
Browse files Browse the repository at this point in the history
  • Loading branch information
moranje committed Oct 10, 2018
1 parent bf18000 commit c09a903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/alfred-workflow-todoist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { cache, serialize } from '@/todoist/cache'

import { AlfredError } from './workflow/error'
import { Notification } from './workflow/notifier'
import { getSettings } from './workflow/settings'
import { TodoistWorkflow } from './workflow/todoist-workflow'

const argv = Object.assign([], process.argv)
Expand All @@ -28,7 +29,7 @@ if (type === 'read') {
todoistWorkflow.create(query)
handleSerialization()
} else if (type === 'submit') {
todoistWorkflow.submit(JSON.parse(query))
todoistWorkflow.submit(Object.assign(JSON.parse(query), { due_lang: getSettings().language }))
handleSerialization()
} else if (type === 'remove') {
todoistWorkflow.remove(JSON.parse(query))
Expand Down

0 comments on commit c09a903

Please sign in to comment.