Skip to content

Support multilanguage nopes based on the Accept-Language standard header #3

@agomezlucena

Description

@agomezlucena

Why we need this:

The joke need to be multilingual for rejecting Co-Workers crazy ideas in their native language.

How this will work:

the user will sent us this request

curl -X GET ${NASS_URL}/no -H Accept-Language=es-es

the user will obtain a random negation sentence in the defined language like.

{
    "reason":"Ni harto whisky hago ese desastre."
}

In case that the user don't define any header or its locale it's not supported the expected result will be in english.

If you need any rejection phrases in Spain Spanish you can count with me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions