Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add inlang to make the contribution of translations easier #205

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions inlang.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export async function defineConfig(env) {
const { default: pluginJson } = await env.$import(
'https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@2/dist/index.js'
);

const { default: standardLintRules } = await env.$import(
'https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@2/dist/index.js'
);

return {
referenceLanguage: 'en',
plugins: [pluginJson({
pathPattern: './loc/{language}.json'
}), standardLintRules()]
};
}
12 changes: 9 additions & 3 deletions loc/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"remove": "Entfernen",
"add": "Hinzufügen",
"cancel": "Abbrechen",
"connect": "Verbinden"
"connect": "Verbinden",
"error": {
"title": "Verbindung nicht möglich",
"reason": {
"refused": "Die Verbindung wurde abgelehnt.",
"version": "Der Server verwendet eine inkompatible Version."
}
}
}
}

}
3 changes: 1 addition & 2 deletions loc/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,4 @@
"channel_message_placeholder": "Type message to channel '%1' here",
"user_message_placeholder": "Type message to user '%1' here"
}
}

}
3 changes: 1 addition & 2 deletions loc/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
"cancel": "Nuligi",
"connect": "Konekti"
}
}

}
3 changes: 1 addition & 2 deletions loc/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@
"channel_message_placeholder": "Escribe un mensaje al canal '%1'",
"user_message_placeholder": "Escribe un mensaje al usuario '%1'"
}
}

}
6 changes: 3 additions & 3 deletions loc/oc.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"copy_mumble_url": "Copair l’URL Mumble",
"copy_mumble_web_url": "Copiar l’URL Mumble-Web",
"send_message": "Enviar messatge"
},
},
"logentry": {
"connecting": "Connexion al servidor",
"connected": "Connectat !",
Expand All @@ -71,6 +71,6 @@
},
"chat": {
"channel_message_placeholder": "Escrivètz un messatge per la sala '%1' aquí",
"user_message_placeholder": "Escrivètz un messatge a '%1' aquí"
"user_message_placeholder": "Escrivètz un messatge a '%1' aquí"
}
}
}