Browse Source

chore: updates README.md and README-ru.md

e22m4u 1 year ago
parent
commit
3152a8dcd2
2 changed files with 9 additions and 10 deletions
  1. 5 6
      README-ru.md
  2. 4 4
      README.md

+ 5 - 6
README-ru.md

@@ -22,12 +22,11 @@ npm install @e22m4u/js-service
 - `ServiceContainer` - классическая версия сервис-локатора  
 - `ServiceContainer` - классическая версия сервис-локатора  
 - `Service` - скрывает создание контейнера и его распространение
 - `Service` - скрывает создание контейнера и его распространение
 
 
-Класс `Service` удобен, когда приложение имеет единственную
-точку входа, которая создается оператором `new`. Например,
-если такой точкой является класс `App`, то мы могли бы
-унаследовать его от класса `Service`, и обращаться к другим
-сервисам методом `getService` не заботясь о создании
-и хранении их экземпляров.
+Класс `Service` удобен, когда приложение имеет единственную точку
+входа, которая создается оператором `new`. Например, если такой
+точкой является класс `Application`, то мы могли бы унаследовать
+его от класса `Service`, и обращаться к другим сервисам методом
+`getService` не заботясь о создании и хранении их экземпляров.
 
 
 Кроме того, если другие сервисы так же наследуют от класса
 Кроме того, если другие сервисы так же наследуют от класса
 `Service`, то они могут обращаться друг к другу используя
 `Service`, то они могут обращаться друг к другу используя

+ 4 - 4
README.md

@@ -23,10 +23,10 @@ which can be used separately or together.
 - `Service` - hides the creation of the container and its distribution
 - `Service` - hides the creation of the container and its distribution
 
 
 The `Service` class is convenient when the application has a single
 The `Service` class is convenient when the application has a single
-entry point created by the `new` operator. For example, if such
-a point is the `App` class, we could inherit it from the `Service`
-class and access other services using the `getService` method
-without worrying about creating and storing their instances.
+entry point created by the `new` operator. For example, if such a point
+is the `Application` class, we could inherit it from the `Service` class
+and access other services using the `getService` method without worrying
+about creating and storing their instances.
 
 
 Moreover, if other services also inherit from the `Service` class,
 Moreover, if other services also inherit from the `Service` class,
 they can refer to each other using the `getService` method,
 they can refer to each other using the `getService` method,