-
Notifications
You must be signed in to change notification settings - Fork 3
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 #15 from zetkin/231205-refactor
add test to github action
- Loading branch information
Showing
23 changed files
with
304 additions
and
133 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 |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# Changelog | ||
<!-- https://keepachangelog.com/en/1.0.0/ --> | ||
|
||
## [0.2.1] 2023-12-05 | ||
### Added | ||
- Run build and test in GitHub action | ||
- Base Branch config to lyra.yml | ||
### Changed | ||
- Rename classes name YAMLTranslate to YamlTranslate and TSMessage to TsMessage to follow naming convention | ||
|
||
## [0.2.0] 2023-12-04 | ||
### Added | ||
- adaptor | ||
- Unit test | ||
|
||
## [0.1.3] 2023-12-01 | ||
### Fixed | ||
- Bug: The case when there is more than one variable in message-id | ||
|
||
## [0.1.2] 2023-12-01 | ||
### Changed | ||
- in memory translate object become flat object of message id and text | ||
|
||
## [0.1.1] 2023-11-24 | ||
### Changed | ||
- fix PR name and commit message |
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
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import TSMessageAdapter from './TSMessageAdapter'; | ||
import YAMLMessageAdapter from './YAMLMessageAdapter'; | ||
import TsMessageAdapter from './TsMessageAdapter'; | ||
import YamlMessageAdapter from './YamlMessageAdapter'; | ||
import LyraConfig, { MessageKind } from '../config'; | ||
|
||
export default class MessageAdapterFactory { | ||
static createAdapter(config: LyraConfig) { | ||
if (config.messageKind == MessageKind.TS) { | ||
return new TSMessageAdapter(config.messagesPath); | ||
// TODO: make it multi projects | ||
if (config.projects[0].messageKind == MessageKind.TS) { | ||
return new TsMessageAdapter(config.projects[0].messagesPath); | ||
} else { | ||
return new YAMLMessageAdapter(config.messagesPath); | ||
return new YamlMessageAdapter(config.projects[0].messagesPath); | ||
} | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...pp/src/utils/adapters/TSMessageAdapter.ts → ...pp/src/utils/adapters/TsMessageAdapter.ts
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
Oops, something went wrong.