Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] refactor application translation base module #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bim-g
Copy link
Collaborator

@bim-g bim-g commented Jun 25, 2024

The translation module s verry poor, a nice default structure and setup by default, that waiting to use to start his own process without knowing how to deal with.

@bim-g bim-g added enhancement New feature or request good first issue Good for newcomers labels Jun 25, 2024
@bim-g bim-g added this to the i18n transaltion milestone Jun 25, 2024
@bim-g bim-g self-assigned this Jun 25, 2024
@bim-g bim-g added this to In progress in Wepesi via automation Jun 25, 2024
@bim-g bim-g linked an issue Jun 25, 2024 that may be closed by this pull request
*/
function tra(string $message, $value = null): string
{
$i18n = new \Wepesi\Core\i18n(\Wepesi\Core\Session::get('lang'));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach of loading the default language from session on not the right way. we should have another method to check the default language from the .env file, and then, set it up on the session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Wepesi
In progress
Development

Successfully merging this pull request may close these issues.

It could be better to have a tra function for translation.
1 participant