mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
language strings updates
This commit is contained in:
@@ -34,7 +34,7 @@ class AdminLanguageTranslatorTest extends TestCase
|
||||
]);
|
||||
|
||||
$this->assertDatabaseHas('language_translations', [
|
||||
'key' => 'actions.close',
|
||||
'key' => 'close',
|
||||
'value' => 'Close',
|
||||
'lang' => 'sk',
|
||||
]);
|
||||
@@ -93,7 +93,7 @@ class AdminLanguageTranslatorTest extends TestCase
|
||||
]);
|
||||
|
||||
$this->assertDatabaseMissing('language_translations', [
|
||||
'key' => 'actions.close',
|
||||
'key' => 'close',
|
||||
'value' => 'Close',
|
||||
'lang' => 'sk',
|
||||
]);
|
||||
@@ -133,7 +133,7 @@ class AdminLanguageTranslatorTest extends TestCase
|
||||
->assertStatus(200)
|
||||
->assertJsonFragment([
|
||||
'locale' => 'en',
|
||||
'actions.close' => 'Close',
|
||||
'close' => 'Close',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -152,12 +152,12 @@ class AdminLanguageTranslatorTest extends TestCase
|
||||
$this
|
||||
->actingAs($admin)
|
||||
->patchJson("/api/admin/languages/$language->id/strings", [
|
||||
'name' => 'actions.close',
|
||||
'name' => 'close',
|
||||
'value' => 'Close It, now!',
|
||||
]);
|
||||
|
||||
$this->assertDatabaseHas('language_translations', [
|
||||
'key' => 'actions.close',
|
||||
'key' => 'close',
|
||||
'value' => 'Close It, now!',
|
||||
'lang' => 'en',
|
||||
]);
|
||||
@@ -180,7 +180,7 @@ class AdminLanguageTranslatorTest extends TestCase
|
||||
->getJson("/api/admin/languages/$language->id")
|
||||
->assertStatus(200)
|
||||
->assertJsonFragment([
|
||||
'actions.close' => 'Close',
|
||||
'close' => 'Close',
|
||||
'locale' => 'en',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class TranslationsAccessTest extends TestCase
|
||||
$this->getJson('/translations/en')
|
||||
->assertStatus(200)
|
||||
->assertJsonFragment([
|
||||
'actions.close' => 'Close',
|
||||
'close' => 'Close',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class TranslationsAccessTest extends TestCase
|
||||
|
||||
$this->assertEquals(
|
||||
'Close',
|
||||
__t('actions.close')
|
||||
__t('close')
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
@@ -72,7 +72,7 @@ class TranslationsAccessTest extends TestCase
|
||||
public function it_get_translated_string_from_t_helper_without_database_connection()
|
||||
{
|
||||
$this->assertEquals(
|
||||
__t('actions.close'),
|
||||
__t('close'),
|
||||
'Close'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user