Skip to content

sfkwww/translation-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

translation-service

Setup

  • Start MongoDB
  • Add port and mongoDB URI to .env
  • Run npm i
  • Run npm scripts build & start

Endpoints

  • GET /
    • Query Params: id (language string), key (translation key)
    • Returns: The translation if found, otherwise an error.
  • POST /
    • Body: id (language string), key(translation key), translation
    • Returns: The inserted translation object if successful, otherwise an error.

Error is returned as { error: 'string' }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published