Open samuelowino opened 7 months ago
Can i implement this together with issue 4 and 5
Yes of course
for For Freighting localized Strings... there is no spec and the code gives me an impression i need one since my localized strings are saved in the target folder but the Freighting expects i load the classes from a class path eg /home/mwangi/mobile-translate/src/main/resources then it tries to look for a file eg "files/pl.xml" but they are not there so it will always return a null(which is not handled ) by the caller here is the method in the IOUtils.class ignore the logs public static InputStream loadResourceFileUrl(String fileName){ //logger.info("HERE IS THE FILE I GET: " + fileName); //logger.info("WHAT IS THIS " + IOUtils.class.getClassLoader().getResourceAsStream("files/" + fileName)); return IOUtils.class.getClassLoader().getResourceAsStream("files/" + fileName); }
Freighter is designed to copy translated text into an Android Studio project. It requires the translated files to be located in the src/main/../files directory. You can write additional code to move the translated XML files to the res directory and read from there, or simply paste sample files for your own testing.
since i am not doing this for production reasons and self assigned keys ( generally only good for testing since the CA is not verifiable ) i would like to skip spec 9 and also the google translation api is not free so i will leave the way it is on the README (not doing this for production) i would also like to skip spec 4 if thats`s okay i can continue with the rest api design
Yes, please proceed without it. I can assist with any tests that require a Google Cloud account. Our goal is to create a straightforward interface where pre-translated Android strings.xml or iOS Localizable.strings files can be submitted, and we receive a list of translated versions in the available locales.
Define Endpoints:
/translate
.Request Payload:
Authentication and Authorization:
Translation Service Integration:
Error Handling:
Response Format:
Localization:
Testing and Documentation:
Security:
Scalability and Performance: