Skip to content

Commit

Permalink
Bugfix for constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
cracksalad committed Aug 25, 2023
1 parent 09e45a9 commit c08a44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cracksalad/i18n",
"version": "0.1.0",
"version": "0.1.1",
"type": "library",
"description": "PHP library to properly handle internationalization, but in a stateless fashion - no gettext()!",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class I18n implements \JsonSerializable {
/**
* @throws \InvalidArgumentException if the translation .mo file could not be found or read.
*/
protected function __construct(string $locale, string $domain = 'messages', string $directory = './locale') {
public function __construct(string $locale, string $domain = 'messages', string $directory = './locale') {
$this->locale = $locale;

$path = \realpath($directory).DIRECTORY_SEPARATOR.$locale.DIRECTORY_SEPARATOR.'LC_MESSAGES'.DIRECTORY_SEPARATOR.$domain.'.mo';
Expand Down

0 comments on commit c08a44a

Please sign in to comment.