mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
add a special key to allow translators to exclude language until ready (#461)
This adds a special key to be translated. While the key has not been translated, the language should not be offered or used by default. The key is not yet effective - that will be follow-up once the key has propagated to weblate and existing translations have had time to update.
This commit is contained in:
parent
186263b4fb
commit
b28cbb378a
@ -218,6 +218,20 @@ export class App extends DisposableWithEvents {
|
||||
this._mostRecentDocPageModel = pageModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is not called anywhere, it is here just to introduce
|
||||
* a special translation key. The purpose of this key is to let translators
|
||||
* control whether a translation is ready to be offered to the user.
|
||||
*
|
||||
* If the key has not been translated for a language, and the language
|
||||
* is not the default language, then the language should not be offered
|
||||
* or used (unless some flag is set). TODO: implement this once key
|
||||
* is available in weblate and good translations have been updated.
|
||||
*/
|
||||
public checkSpecialTranslationKey() {
|
||||
return t('Translators: please translate this only when your language is ready to be offered to users');
|
||||
}
|
||||
|
||||
// Get the user profile for testing purposes
|
||||
public async testGetProfile(): Promise<any> {
|
||||
const resp = await fetchFromHome('/api/profile/user', {credentials: 'include'});
|
||||
|
Loading…
Reference in New Issue
Block a user