-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#19 GET SupportedLanguages implemented
- Loading branch information
1 parent
6353d0e
commit d415af1
Showing
4 changed files
with
83 additions
and
1 deletion.
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
29 changes: 29 additions & 0 deletions
29
src/main/java/io/imagineobjects/linguinai/SupportedLanguage.java
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,29 @@ | ||
package io.imagineobjects.linguinai; | ||
|
||
/** | ||
* Language supported by Linguin.ai. | ||
* @author Mihai Andronache (amihaiemil@gmail.com) | ||
* @version $Id$ | ||
* @since 0.0.1 | ||
*/ | ||
public interface SupportedLanguage { | ||
|
||
/** | ||
* Language code. | ||
* @return String. | ||
*/ | ||
String code(); | ||
|
||
/** | ||
* Name(s) of the language in english. | ||
* @return String[]. | ||
*/ | ||
String[] englishNames(); | ||
|
||
/** | ||
* Name(s) of the language in said language. | ||
* @return String[]. | ||
*/ | ||
String[] nativeNames(); | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/io/imagineobjects/linguinai/SupportedLanguages.java
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,10 @@ | ||
package io.imagineobjects.linguinai; | ||
|
||
/** | ||
* Languages supported by Linguin.ai. | ||
* @author Mihai Andronache (amihaiemil@gmail.com) | ||
* @version $Id$ | ||
* @since 0.0.1 | ||
*/ | ||
public interface SupportedLanguages extends Iterable<SupportedLanguage> { | ||
} |
d415af1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amihaiemil I've closed the Issues [#19] since their to-dos disappeared from the code.
The to-dos may have been removed in an earlier commit, but I've found it just now.