Skip to content

better naming/organization of settings, options, and appSpecificApi #1225

Discussion options

You must be logged in to vote

Problem

  • What are options?
  • What are settings?
  • What is passed to plugins, lint rules, and apps?

Proposal

https://www.loom.com/share/f1c48c10cddf41aa96e1767b74bf2ef5

  • Change the inlang config to contain only settings
  • settings are always passed in full to the corresponding identified app, lint rule, or plugin
  • system is a reserved namespace for "system wide settings" like a lint level overwrite

The config is inspired by VSCode's settings which also only consist of key-value pairs and seem to make our communication and internal logic easier.

// inlang.config.json
{
	"sourceLanguageTag": "en",
	"languageTags": ["en"],
	"modules": ["./dist/index.js"],
	"settings": {
	         // system wide se…

Replies: 4 comments 4 replies

This comment has been hidden.

@samuelstroschein

This comment has been hidden.

Comment options

You must be logged in to vote
2 replies
@samuelstroschein
Comment options

@samuelstroschein
Comment options

Answer selected by samuelstroschein
Comment options

You must be logged in to vote
1 reply
@samuelstroschein
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants