-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #774 from tchapgouv/translations-as-module
Migrate translations to module
- Loading branch information
Showing
15 changed files
with
1,218 additions
and
1,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# copied from build_config.sample.yaml | ||
# Make sure that the modules added here are ALSO ADDED IN OPTIONALDEPENDENCIES in package.json. | ||
modules: | ||
# An example of pulling a module from NPM | ||
#- "@vector-im/element-web-ilag-module@^0.0.4" | ||
|
||
# An example of pulling a module from github | ||
#- "github:vector-im/element-web-ilag-module#main" | ||
|
||
# Pulling from filesystem. | ||
- "file:./modules/tchap-translations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
Copyright 2023 DINUM | ||
*/ | ||
import { RuntimeModule } from "@matrix-org/react-sdk-module-api/lib/RuntimeModule"; | ||
|
||
import tchapTranslations from "./tchap_translations.json"; | ||
export default class TchapTranslationsModule extends RuntimeModule { | ||
constructor(moduleApi) { | ||
super(moduleApi); | ||
|
||
this.moduleApi.registerTranslations(tchapTranslations); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "tchap-translations", | ||
"version": "0.0.0", | ||
"description": "Custom translations for Tchap", | ||
"author": "DINUM", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@matrix-org/react-sdk-module-api": "^1.0.0" | ||
}, | ||
"main": "TchapTranslationsModule.js" | ||
} |
Oops, something went wrong.